# Flutter Test Coverage

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](https://cdn.hashnode.com/res/hashnode/image/upload/v1635788517247/CvgW8mAV1.png align="left")

## Installation

### Install on Ubuntu

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

### Install on Mac

```shell
brew install lcov
```

### Install on Windows

*Continue this article on my personal blog* [*here*](https://tech-andgar.me/posts/flutter-test-coverage/)*.*
