Back to Lynx

Lynx Code Coverage

tools/rtf/core/coverage/README.md

3.7.01.1 KB
Original Source

Lynx Code Coverage

Cpp Coverage

The code coverage of Lynx C++ is statistically measured through compiler instrumentation based on LLVM , and corresponding tools are used to generate the coverage reports.

How to generate code coverage?

  1. First, run the unit tests.
cd repo_root_dir
tools/rtf/rtf native-ut run --names lynx
  1. You can find coverage reports in various formats in out/coverage.
  • html : out/coverage/html
  • json : out/coverage/json
  • lcov : out/coverage/lcov

Android Coverage

Android unit tests use the JaCoCo plugin to perform runtime coverage data statistics, and use the corresponding JaCoCo CLI tool to generate coverage reports.

How to generate code coverage?

  1. First, run the unit tests.
cd repo_root_dir
tools/rtf/rtf android-ut run --name lynx
  1. You can find coverage reports in various formats in out/coverage.
  • xml : out/coverage/xml
  • html : out/coverage/html