commit | d6f706d334046601df9d0a58b993b705e9e371a0 | [log] [tgz] |
---|---|---|
author | Ulf Adams <ulfjack@google.com> | Tue Apr 17 07:14:22 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Tue Apr 17 07:15:32 2018 -0700 |
tree | f44cd73ff4d8ef1b1fe1967f8b1920f90f338455 | |
parent | e3a0b09598baff1860a330d63284ab1fb98a76f4 [diff] |
Pass --coverage to all compile and link steps I get failing tests without this flag in coverage mode. Workaround is to pass --linkopt=-fprofile-arcs in Bazel. Here are the steps that work at this time (with this change): bazel coverage --strategy=TestRunner=standalone //my/funky:test genhtml -o report-output-directory/ path/to/coverage.dat Some progress on #1118. PiperOrigin-RevId: 193193164
{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.