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.
- First, run the unit tests.
cd repo_root_dir
tools/rtf/rtf native-ut run --names lynx
- You can find coverage reports in various formats in out/coverage.
- html :
out/coverage/html - json :
out/coverage/json - lcov :
out/coverage/lcov
Android unit tests use the JaCoCo plugin to perform runtime coverage data statistics, and use the corresponding JaCoCo CLI tool to generate coverage reports.
- First, run the unit tests.
cd repo_root_dir
tools/rtf/rtf android-ut run --name lynx
- You can find coverage reports in various formats in out/coverage.
- xml :
out/coverage/xml - html :
out/coverage/html