Closed stefaneidelloth closed 1 year ago
Can you try just the ending suffix instead of full path; And please restart the engine after the configuration changed.
discovery:
# some tests should not be considered for the unit test coverage:
exclusions:
- back_end/test_integration/
- test_calculation.py
I will try to reproduce this example today to see if it is working as intended
a) If I use
discovery:
exclusions:
- test_calculation.py
It is excluded. However, another file with the same name in a different folder is excluded, too. And I do not want that.
b) I tried to use \ instead of / as separator in the directory path (I use windows ) and that did the trick.
I tried to adpt .pychrun-config.yaml to exclude some integration test folder for the unit test coverage (see below).
However, the tests in
back_end/test_integration are still discovered
I tried both, to exclude the whole directory as well as to exclude the individual file.
I use PyCharm 2022.1.2 (Community Edition)