The below step will create .em
files in out/Release/lib.java
and .ec
files in the coverage directory mentioned (out/Release/CoverageDirectory
):
build/android/test_runner.py instrumentation --test-apk=ContentShellTest --release -vvv --coverage-dir out/Release/CoverageDirectory
The below step will take the coverage directory (containing .ec
files) mentioned above and the out/Release
directory (containing .em
files generated above) and generate the html coverage report.
build/android/generate_emma_html.py --coverage-dir out/Release/CoverageDirectory --metadata-dir out/Release --cleanup --output out/Release/CoverageDirectory/coverage_html/index.html