coverage
coverage copied to clipboard
Ignoring via comments does not work all the time with code coverage
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:

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:

Command used to execute the tests are
flutter test --coverage