Coverage in combination with changed option. #4868
-
To improve our CI pipeline executing time, I would like to use the changed option which executes a git diff and only runs tests on the affected files. However, it seems that the coverage reports doesn't seem to make any sense: files are included that are not tested and the coverage % is below the thresholds but succeeds anyway. I was wondering if others managed to get it to work together. Command: Coverage options:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Currently In your case you might get everything working nicely by using |
Beta Was this translation helpful? Give feedback.
Currently
--changed
doesn't affect coverage in any way. If you have suggestions how it should behave, feel free to open feature request for this. There was also some similar discussion earlier here: #4057.In your case you might get everything working nicely by using
--coverage.enabled --coverage.all=false
with the--changed
. Then coverage report will only include the files that were imported by the test cases.