coverage icon indicating copy to clipboard operation
coverage copied to clipboard

Ignoring via comments does not work all the time with code coverage

Open iOSonntag opened this issue 4 years ago • 5 comments

I use

// coverage:ignore-start
void doNotCheckForCoverage()
{
    someCode();
}
// coverage:ignore-end

everywhere and it used to work good. But after writing a lot of test a strange behaviour occured. Sometimes it does not work as intedent and I think its a bug.

As u can see below it does not work in this file:

image

But it is working in other places in the same project under the same test dir all ending with the _test.dart postfix, like here:

image

Command used to execute the tests are

flutter test --coverage

iOSonntag avatar Mar 30 '21 14:03 iOSonntag