Version 2 (modified by Timothy_Gu, 5 years ago) (diff)


Testing Coverage of FATE Test Suite

One can easily discover untested components of FFmpeg using coverage testing. A online coverage report is available at, but you can generate one yourself with gcov and either lcov or gcovr.


First, configure the build with the special gcov toolchain:

./configure --toolchain=gcov --rest-of-options
# For example, I use:
# ./configure --toolchain=gcov --enable-gpl --enable-avresample --samples=`pwd`/fate-suite

Using lcov

If you are using lcov, you have to first reset its counter:

make lcov-reset

Then, run the FATE suite:

# The -j parameter controls thread number for parallel building
make -k -j6 fate

Finally, generate the HTML output:

make lcov

Using gcovr