After upgrading a Dart Frog project to version 1.28.0 of test, I noticed that coverage was not getting outputted for files in my routes directory--running coverage would produce an empty lcov.info file. When I rolled back to version 1.25.8, the lcov.info once again had data.
Dart SDK version: 3.9.0
Here is a repository with a minimal reproduction.
Steps:
- Download repository
- Run
dart test -j 4 --coverage=coverage --platform=vm && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=foo and verify that coverage/lcov.info has data
- In
pubspec.yaml, change test from 1.25.8 to 1.28.0
- Run
dart pub get
- Run
dart test -j 4 --coverage=coverage --platform=vm && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=foo, and see that coverage/lcov.info is now empty
After upgrading a Dart Frog project to version 1.28.0 of
test, I noticed that coverage was not getting outputted for files in myroutesdirectory--running coverage would produce an emptylcov.infofile. When I rolled back to version 1.25.8, thelcov.infoonce again had data.Dart SDK version: 3.9.0
Here is a repository with a minimal reproduction.
Steps:
dart test -j 4 --coverage=coverage --platform=vm && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=fooand verify thatcoverage/lcov.infohas datapubspec.yaml, change test from 1.25.8 to 1.28.0dart pub getdart test -j 4 --coverage=coverage --platform=vm && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=foo, and see thatcoverage/lcov.infois now empty