commit | a77cf8b5110f2d413f14a9b40fc3290e298cc6dd | [log] [tgz] |
---|---|---|
author | iirina <elenairina@google.com> | Tue Oct 02 05:58:57 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Tue Oct 02 06:00:05 2018 -0700 |
tree | 03d7cf390027aff6e41f20f982fc30bc8d4e134a | |
parent | 7c818ca83d993b33ae470afeba5dac7766e7f1ad [diff] |
Use all intermediate .gcov files that are generated. Previously we would only use one `.gcov` file per `gcov` invocation for the final coverage report. This is incorrect because `gcov` generates multiple `.gcov` files for all the sources and headers used for creating the corresponding `.gcda`/`.gcno` files. One example affected by this is when a `cc_library` has multiple headers. We need coverage information for all the headers used. This PR adds several tests to make sure coverage collection works correctly when a `cc_library` has multiple header files and when a header file is used by multiple `cc_library` targets. Unnecessary coverage information will be filtered out by `CoverageOutputGenerator`. Fixes #6129 Fixes #5880 Closes #6232. PiperOrigin-RevId: 215374625
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.