Skip to content

JetASAP/cargo-llvm-cov

 
 

Repository files navigation

cargo-llvm-cov

crates.io license rustc build status

[EXPERIMENTAL] A wrapper for source based code coverage (-Zinstrument-coverage).

Installation

cargo install cargo-llvm-cov --version 0.1.0-alpha.2

cargo install cargo-binutils

cargo install rustfilt

rustup component add llvm-tools-preview

Alternatively, download compiled binaries from GitHub Releases.

cargo-llvm-cov relies on unstable compiler flags so it requires a nightly toolchain to be installed, though does not require nightly to be the default toolchain or the one with which cargo-llvm-cov itself is executed. If the default toolchain is one other than nightly, running cargo llvm-cov will find and use nightly anyway.

Usage

See cargo llvm-cov --help for a complete list of options

By default, only the summary is displayed in the terminal.

cargo llvm-cov

With html report (report will be generated to target/llvm-cov):

cargo llvm-cov --html
open target/llvm-cov/index.html

or

cargo llvm-cov --open

With json report:

cargo llvm-cov --json

With plain text report (for use in online code coverage services like codecov.io):

cargo llvm-cov --text

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

[EXPERIMENTAL] A wrapper for source based code coverage (-Zinstrument-coverage).

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Rust 77.2%
  • Shell 22.8%