You can also install lcov
and convert the lcov.info
file to HTML
pages and then see the result in the browser with sorting option
Installing in Ubuntu:
sudo apt-get update -qq -y
sudo apt-get install lcov -y
Installing in Mac:
brew install lcov
Run tests, generate coverage files and convert to HTML
flutter test --coverage
genhtml coverage/lcov.info -o coverage/html
Note: This way you can add it to circleci
artifacts and coveralls
as well
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…