An open API service indexing awesome lists of open source software.

https://github.com/trailofbits/cargo-line-test

Run tests by the lines they exercise
https://github.com/trailofbits/cargo-line-test

rust testing

Last synced: about 1 year ago
JSON representation

Run tests by the lines they exercise

Awesome Lists containing this project

README

          

# cargo-line-test

Run tests by the lines they exercise

`cargo-line-test` relies on [`cargo-llvm-cov`] and requires it to be installed independently:

```sh
cargo install cargo-line-test cargo-llvm-cov
```

## Examples

```sh
# Build cargo-line-test database
cargo line-test --build

# Run the tests that exercise src/main.rs:99
cargo line-test --line src/main.rs:99

# Run the tests that exercise lines changed by diff
git diff | cargo line-test --diff

# Update the database following source code changes
cargo line-test --refresh
```

[`cargo-llvm-cov`]: https://crates.io/crates/cargo-llvm-cov