You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read in another issue (#123) that integration tests are automatically excluded from coverage reports while unit tests are not (so far).
This lead to a situation that had me very confused at first:
I have a module named tests in my crate that contains tests and test helper code.
Actual behavior:
The submodules of the tests module are ignored in coverage reporting but tests.rs is not.
My assumption is that it's probably because of the filtering for integration tests.
I was very confused at first and thought the coverage collection is not working properly or sth.
Desired behavior:
Either ignore all of the unit test code or none of it.
cargo-llvm-cov excludes code contained in the directory named tests from the report by default
Excluding tests.rs is proposed in #123 (comment) and I agreed with it in #123 (comment), but no one has implemented it yet. PR to implement it is welcome.
I read in another issue (#123) that integration tests are automatically excluded from coverage reports while unit tests are not (so far).
This lead to a situation that had me very confused at first:
I have a module named
tests
in my crate that contains tests and test helper code.Actual behavior:
The submodules of the
tests
module are ignored in coverage reporting buttests.rs
is not.My assumption is that it's probably because of the filtering for integration tests.
I was very confused at first and thought the coverage collection is not working properly or sth.
Desired behavior:
Either ignore all of the unit test code or none of it.
Minimal example:
src/tests.rs
src/tests/example.rs
src/lib.rs
The text was updated successfully, but these errors were encountered: