<p>Okay, I figured that out.</p>

<p>After you run tests, you will see a bunch of *.gcno files. Then, do:</p>

<pre><code># better to work in a separate dir
mkdir cov &amp;&amp; cd cov
lcov -c -d ../src -o cov.info
genhtml cov.info
</code></pre>

<p>And open <code>index.html</code> <code>cov</code> dir.</p>

CC BY-SA 4.0
2019-10-31T18:46:22.743Z
2019-10-31T18:46:22.743Z
warchantua
<p>I built bitcoin as:</p>

<pre><code>./autogen.sh
./configure --without-gui --enable-lcov
make -j4
./src/test/test_bitcoin
</code></pre>

<p>I see bunch of *.gcno files. How do I generate html?</p>

<bitcoin-core>
How to generate html with coverage data?
warchantua
# How to generate html with coverage data?

(Asked by: username_0 on 2019-10-31)

I built bitcoin as:

```
./autogen.sh
./configure --without-gui --enable-lcov
make -j4
./src/test/test_bitcoin

```

I see bunch of \*.gcno files. How do I generate html?

**Tags:** bitcoin-core


---

## 1 answers

### Answer by username_0 on 2019-10-31. Score: 0 | Accepted answer

Okay, I figured that out.

After you run tests, you will see a bunch of \*.gcno files. Then, do:

```
# better to work in a separate dir
mkdir cov && cd cov
lcov -c -d ../src -o cov.info
genhtml cov.info

```

And open `index.html` `cov` dir.


---

