Skip to main content

Command Palette

Search for a command to run...

Flutter Test Coverage

Updated
1 min read
A

a fully self-taught Deaf person and Mobile Flutter FullStack Software Engineer

LCOV is a graphical tool for GCC coverage testing with gcov. It creates HTML pages containing source code annotated with coverage information by collecting gcov data from multiple source files. LCOV supports "Line Coverage" and "Function Coverage" measurement.

The LCOV report looks as follows:

image.png

Installation

Install on Ubuntu

sudo apt-get update -qq -y
sudo apt-get install lcov -y

Install on Mac

brew install lcov

Install on Windows

Continue this article on my personal blog here.

1.5K views

More from this blog

Andrés García's Blog

9 posts

a fully self-taught Deaf person and Mobile Software Engineer