-
Notifications
You must be signed in to change notification settings - Fork 227
Test Coverage is Empty when Files are not in lib/ directory #2581
Copy link
Copy link
Closed
Labels
Description
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=fooand verify thatcoverage/lcov.infohas 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 thatcoverage/lcov.infois now empty
Reactions are currently unavailable