0

Im trying to get a code coverage report following the below steps.

  • flutter test --coverage
  • genhtml coverage/lcov.info -o coverage/html
  • open coverage/html/index.html

I want the generated files to be removed from the report. i treid..

lcov --remove coverage/lcov.info \ 'lib/*/*.freezed.dart'  \ -o coverage/lcov.info

But this does nothing. Still shows the report with generated files. I don't know whether if i'm doing this the right way.

James Z
  • 12,209
  • 10
  • 24
  • 44
Mohammed Niyaz
  • 159
  • 1
  • 6
  • Use `**` when you filter folder. I use this command and it work well: `lcov --remove coverage/lcov.info '**/*.freezed.dart' ' '**/*.g.dart' -o coverage/lcov.info` – lich0n Nov 29 '22 at 12:49
  • this removed .g.dart files but didn delete a single freezed file.. Is there any other issue, where you able to remove freezed files also? – Mohammed Niyaz Dec 01 '22 at 09:21

0 Answers0