astronomer-cosmos
astronomer-cosmos copied to clipboard
Allowing exclusions to be passed through to the test tasks
Description
Previously, exclusions were not being passed through to test tasks when using test behavior of after each or after all. This meant that if you were trying to exclude unit tests or a specific test, you were unable to do so easily without a workaround of also passing the exclusion into the operator args.
While this would be great to also do something similar with the select or selector (ex. select model A and test 2), I think it would be too complex to get the unions / intersections correct. I added documentation about this limitation so it's at least more clear.
Related Issue(s)
Closes #1763 Closes #1865
Breaking Change?
No
Checklist
- [x] I have made corresponding changes to the documentation (if required)
- [x] I have added tests that prove my fix is effective or that my feature works
Deploy Preview for sunny-pastelito-5ecb04 canceled.
| Name | Link |
|---|---|
| Latest commit | 43a24646733fb35140842463faa15c816e89d05a |
| Latest deploy log | https://app.netlify.com/projects/sunny-pastelito-5ecb04/deploys/68ef9aba62c41c0008317553 |
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 97.78%. Comparing base (6a9b0bb) to head (4f1ba71).
Additional details and impacted files
@@ Coverage Diff @@
## main #2006 +/- ##
=======================================
Coverage 97.78% 97.78%
=======================================
Files 91 91
Lines 5862 5862
=======================================
Hits 5732 5732
Misses 130 130
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.