Show coverage on LOC even when tests are excluded
We have a lot of integration tests that interact with the database, and as such, we flag these to be excluded from NCrunch using an attribute/customized engine mode.
While that is great, I would still like to be notified that the actual LOC are covered by something. Right now, I get the white dot/"no coverage"
It would be nice to still mark these lines as covered by a test - even if its excluded. Mark it with some other color, and let me drill into the tests in the test suite.
-
Calvin Allen commented
Perhaps that's my issue then - we are using a filter to exclude these tests from coverage due to the nature (i.e., slowness) of the tests themselves.
-
By default, tests that are excluded from automatic execution using an engine mode will still have their code coverage showing inline. An exception to this is if you also have the engine mode deliberately set up with a filter to also exclude these tests from coverage.
Of course, this is provided the tests have already been previously run and they have coverage data available to the engine.