Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show flutter test coverage

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.

like image 583
mohammad Avatar asked Aug 27 '26 19:08

mohammad


1 Answers

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

like image 154
magicleon94 Avatar answered Aug 29 '26 10:08

magicleon94