You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add flag to coverage tool to exclude files we don't need to test (ZcashFoundation#231)
* Add documentation to README for running code coverage tests locally (ZcashFoundation#231)
---------
Co-authored-by: Natalie Eskinazi <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+7
Original file line number
Diff line number
Diff line change
@@ -35,3 +35,10 @@ dependency.
35
35
1. Run tests `cargo test`
36
36
2. Run formatter `cargo fmt`
37
37
3. Check linter `cargo clippy` and if you want to automatically fix then run `cargo clippy --fix`
38
+
39
+
## Coverage
40
+
41
+
Test coverage checks are performed in the pipeline. This is cofigured here: `.github/workflows/coverage.yaml`
42
+
To run these locally:
43
+
1. Install coverage tool by running `cargo install cargo-llvm-cov`
44
+
2. Run `cargo llvm-cov --ignore-filename-regex 'tests.rs|benches.rs|gendoc'` (you may be asked if you want to install `llvm-tools-preview`, if so type `Y`)
0 commit comments