aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/commands/coverage.txt
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2016-11-24 12:51:35 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-11-24 13:34:11 +0000
commit8829abaeec8fa0be7ea6d87cbfde656e9c780cf3 (patch)
treef0063ad8b10ec7a4db91948609aba5a50bc2cf94 /src/main/java/com/google/devtools/build/lib/runtime/commands/coverage.txt
parent74ffaf7a7a1611fb693d5c37469dcd6ea1bf3715 (diff)
Coverage support.
- open source CoverageCommand.java - add a collect-coverage.sh script - update test-setup.sh to be compatible with the coverage collector - update StandaloneTestStrategy to provide the necessary env variables - update StandaloneTestStrategy to set the right command line for coverage - add support for C++ coverage An HTML report can then be generated with genhtml like this: genhtml -o report/ -p "$(readlink -f bazel-<project>)" path/to/coverage.dat Progress on #1118. -- MOS_MIGRATED_REVID=140125715
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/commands/coverage.txt')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/commands/coverage.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/coverage.txt b/src/main/java/com/google/devtools/build/lib/runtime/commands/coverage.txt
new file mode 100644
index 0000000000..2ebc501d8f
--- /dev/null
+++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/coverage.txt
@@ -0,0 +1,15 @@
+
+Usage: blaze %{command} <options> <test-targets>
+
+Builds and runs the specified test targets using the specified options while
+collecting code coverage statistics. Optionally, it also generates combined
+HTML report containing coverage results for all executed tests.
+
+This command accepts all valid options to 'test' and 'build', and inherits
+defaults for 'test' (and 'build') from your .blazerc. If you don't use
+.blazerc, don't forget to pass all your 'build' options to '%{command}' too.
+
+See 'blaze help target-syntax' for details and examples on how to
+specify targets.
+
+%{options}