show flutter test coverage

Issue

I am a bit new to testing world in flutter.
what I want to achieve is to determine my test coverage in flutter.

but I don’t know any way to determine my test coverage ,
any help is appreciated.

Thanks.

Solution

Running the tests with

flutter test --coverage

should generate a file

/coverage/Icov.info

Which holds the information you need.

You can now extract infos from the file in various methods as described here

Answered By – magicleon94

Answer Checked By – Timothy Miller (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.