Hi, code-coverage team @ chromium,
First of all, I want to thank you for the coverage measurement script coverage.py, it works great! It helps me to know about the tests and how much it covers. Since I'm an Android developer, I'm looking for the coverage report for Chromium for Android. It's a pity that coverage.py doesn't support Android target os. I know Chromium support emma coverage tool for java tests, so junit tests and instrumentation tests coverage could be measured. As for gtest, is there way to measure the coverage? I checked the arguments for GN files and in the tools, and I found it has some coverage measuring tools for c++ tests like gcov in v8, but I'm confused about how to use it. Also, I tried to do the steps separately in coverage.py to generate the coverage report, but the build of native tests failed when use_clang_coverage = true is_compoenent_build = false. The failure information are like:
chromium/src/third_party/llvm-build/Release+Asserts/lib/clang/7.0.0/lib/linux/libclang_rt.profile-arm-android.a: No such file or directory
Is clang_coverage tool are not capable for Android native test?
What's more, I checked the usage of lcov, it asks enabling coverage when compile c/c++ source code. But the tests are built through ninja, seems not possible to enable the compile settings at the ninja -C build command. I'm really confused about is there any way to measure the coverage of native tests?
Thank you for reply!
All best,
Jennifer