Closed Wizzel1 closed 2 years ago
format_coverage converts a coverage.json file into an lcov file (or pretty prints it). From that error, it looks like your input file is already an lcov file. So you don't need to run format_coverage at all. You probably just need to move/rename coverage/lcov.info to coverage.lcov.
After I run
flutter test --coverage
there is acoverage
folder with anlcov.info
in my project, so this part works.When I try to convert it with
pub run coverage:format_coverage --lcov --in=coverage/lcov.info --out=coverage.lcov --packages=.packages --report-on=lib
I get an error:
I have also tried this:
pub run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib
but that returns an emptycoverage.lcov
file.What am I missing?