-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase test coverage for statement-distribution #2329
Comments
Coverage resultsI managed to get some results with https://app.codecov.io/gh/mrcnski/polkadot-sdk/blob/master/polkadot%2Fnode%2Fnetwork%2Fstatement-distribution%2Fsrc%2Fv2%2Fmod.rs (ignore the The results are worrying... There are some big untested paths, even entire untested functions:
This is using LLVM instrumentation which is supposed to provide the most accurate profiling. Adding coverage for repo?The profiling chokes on wasm, I guess that's why we don't use it. AFAICT it must be run on a per-crate basis. For example, it works on It does seem useful to run manually in targeted situations. InstructionsThese are the commands I ran: cargo install cargo-llvm-cov
# runs `cargo test` with coverage profiling and opens report
cargo llvm-cov --open To upload to codecov:
cargo llvm-cov --codecov --output-path codecov.json
bash <(curl -s https://codecov.io/bash) -f codecov.json |
I also ran profiling for |
We should run code coverage on statement-distribution and add more tests for branches that aren't already covered.
The text was updated successfully, but these errors were encountered: