Closed Hixie closed 2 years ago
Yes, coverage information in an LCOV file can include the number of
Especially, the last one can be very helpful when you want to ensure that every single part of the application is tested and to make sure that someone does not miss the else part of an if statement during the tests!
Here is a bit of documentation on the file format which explains how this works in the LCOV file format: http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php
I would very much appreciate having branch coverage! 💪 (Function coverage is not so important for us)
When I run
flutter test --coverage
and thenlcov --summary coverage/lcov.info
, it saysfunctions: no data found
andbranches: no data found
. I'm no expert but that would seem to suggest that thelcov.info
format now supports more than we are currently exposing.