Lines Matching full:coverage
1 # Android code coverage instructions
3 These are instructions for collecting code coverage data for android
4 instrumentation and JUnit tests. For Clang(C++) code coverage refer to [clang coverage].
8 ## How JaCoCo coverage works
10 In order to use JaCoCo code coverage, we need to create build time pre-instrumented
14 ## How to collect coverage data
25 2. Run tests, with option `--coverage-dir <directory>`, to specify where to save
27 `out/Debug/bin/run_chrome_junit_tests --coverage-dir /tmp/coverage`.
29 3. The coverage results of JUnit and instrumentation tests will be merged
32 ## How to generate coverage report
41 --coverage-dir /tmp/coverage/ \
44 Then an index.html containing coverage info will be created in output directory:
47 [INFO] Loading execution data file /tmp/coverage/testTitle.exec.
48 [INFO] Loading execution data file /tmp/coverage/testSelected.exec.
49 [INFO] Loading execution data file /tmp/coverage/testClickToSelect.exec.
50 [INFO] Loading execution data file /tmp/coverage/testClickToClose.exec.
51 [INFO] Loading execution data file /tmp/coverage/testThumbnail.exec.
61 --coverage-dir /tmp/coverage/ \
71 --coverage-dir /tmp/coverage/ \
74 3. If generating coverage and there are duplicate class files, as can happen
75 when generating coverage for downstream targets, use the
77 for generating coverage report for Clank internal repo
80 --output-dir /tmp/coverage_report/ --coverage-dir /tmp/coverage/ \
85 [clang coverage]: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/code_coverage.…