Simple Viewer for Source Code coverage data generated by LLVM based compilers using Qt for Python
Install pipx using the package manager for your OS or pip
-
Generate source code coverage data for your application. See Source-based Code Coverage for full details
-
Export a json file from the
*.profdata
data files using llvm-cov, for example if your application is calledtest
and you have generated atest.profdata
file:llvm-cov export ./test -instr-profile=test.profdata > test.coverage.json
-
Run using
pipx
pipx run view_coverage.py test.coverage.json