Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

KCov code coverage collection #11

Open
azriel91 opened this issue Jun 26, 2018 · 0 comments
Open

KCov code coverage collection #11

azriel91 opened this issue Jun 26, 2018 · 0 comments

Comments

@azriel91
Copy link
Owner

Implement code coverage collection using KCov.

Test binaries to be run can be discovered through this command (source: rust-lang/cargo#1924 (comment)):

$ cargo test --no-run --message-format=json | jq -r "select(.profile.test == true) | .filenames[]"

We may be able to collect code coverage for crate binaries by using that --message-format=json method to get the path to the binary and wrapping it with kcov in integration tests.

For a JSON query library, jmespath is the most feature complete right now, jsonpath is not yet feature complete, but looks promising (check the state of that crate when you actually do this ticket!).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant