-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37: Automate update of help message in readme r=taiki-e a=taiki-e Co-authored-by: Taiki Endo <[email protected]>
- Loading branch information
Showing
3 changed files
with
216 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
cargo-llvm-cov | ||
A wrapper for source based code coverage (-Zinstrument-coverage). | ||
|
||
Use -h for short descriptions and --help for more details. | ||
|
||
USAGE: | ||
cargo llvm-cov [OPTIONS] [-- <args>...] | ||
|
||
OPTIONS: | ||
--json | ||
Export coverage data in "json" format | ||
|
||
If --output-path is not specified, the report will be printed to stdout. | ||
|
||
This internally calls `llvm-cov export -format=text`. See <https://llvm.org/docs/CommandGuide/llvm- | ||
cov.html#llvm-cov-export> for more. | ||
--lcov | ||
Export coverage data in "lcov" format. | ||
|
||
If --output-path is not specified, the report will be printed to stdout. | ||
|
||
This internally calls `llvm-cov export -format=lcov`. See <https://llvm.org/docs/CommandGuide/llvm- | ||
cov.html#llvm-cov-export> for more. | ||
--text | ||
Generate coverage reports in “text” format. | ||
|
||
If --output-path or --output-dir is not specified, the report will be printed to stdout. | ||
|
||
This internally calls `llvm-cov show -format=text`. See <https://llvm.org/docs/CommandGuide/llvm- | ||
cov.html#llvm-cov-show> for more. | ||
--html | ||
Generate coverage reports in "html" format. If --output-dir is not specified, the report will be generated | ||
in `target/llvm-cov` directory. | ||
|
||
This internally calls `llvm-cov show -format=html`. See <https://llvm.org/docs/CommandGuide/llvm- | ||
cov.html#llvm-cov-show> for more. | ||
--open | ||
Generate coverage reports in "html" format and open them in a browser after the operation. | ||
|
||
See --html for more. | ||
--summary-only | ||
Export only summary information for each file in the coverage data. | ||
|
||
This flag can only be used together with either --json or --lcov. | ||
--output-path <PATH> | ||
Specify a file to write coverage data into. | ||
|
||
This flag can only be used together with --json, --lcov, or --text. See --output-dir for --html and --open. | ||
--output-dir <DIRECTORY> | ||
Specify a directory to write coverage reports into (default to `target/llvm-cov`). | ||
|
||
This flag can only be used together with --text, --html, or --open. See also --output-path. | ||
--ignore-filename-regex <PATTERN> | ||
Skip source code files with file paths that match the given regular expression | ||
|
||
--doctests | ||
Including doc tests (unstable) | ||
|
||
--no-fail-fast | ||
Run all tests regardless of failure | ||
|
||
--workspace | ||
Test all packages in the workspace [aliases: all] | ||
|
||
--exclude <SPEC>... | ||
Exclude packages from the test | ||
|
||
--release | ||
Build artifacts in release mode, with optimizations | ||
|
||
--features <FEATURES>... | ||
Space or comma separated list of features to activate | ||
|
||
--all-features | ||
Activate all available features | ||
|
||
--no-default-features | ||
Do not activate the `default` feature | ||
|
||
--target <TRIPLE> | ||
Build for the target triple | ||
|
||
--manifest-path <PATH> | ||
Path to Cargo.toml | ||
|
||
-v, --verbose | ||
Use verbose output (-vv very verbose/build.rs output) | ||
|
||
--color <WHEN> | ||
Coloring: auto, always, never | ||
|
||
--frozen | ||
Require Cargo.lock and cache are up to date | ||
|
||
--locked | ||
Require Cargo.lock is up to date | ||
|
||
-Z <FLAG>... | ||
Unstable (nightly-only) flags to Cargo | ||
|
||
-h, --help | ||
Prints help information | ||
|
||
-V, --version | ||
Prints version information | ||
|
||
|
||
ARGS: | ||
<args>... | ||
Arguments for the test binary |