Skip to content
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

feat(ci): add code coverage report #787

Closed
wants to merge 3 commits into from
Closed

Conversation

sergey-melnychuk
Copy link
Collaborator

Closes #684
Closes #719

@sergey-melnychuk
Copy link
Collaborator Author

Both tarpaulin and llvm-cov turn out to be to heavy to run in a shared GitHub Actions worker - it fails with exit code 143. At this time I don't think it makes a lot of sense to migrate to a dedicated worker just for the sake of test coverage, as it can run locally.

For local run I personally prefer tarpaulin as it provides better branch coverage and generates a single-file HTML report:

export STARKNET_MAINNET_URL: https://starknet-mainnet.g.alchemy.com/starknet/version/rpc/v0_7/${ALCHEMY_KEY}
export STARKNET_SEPOLIA_URL: https://starknet-sepolia.g.alchemy.com/starknet/version/rpc/v0_7/${ALCHEMY_KEY}
BEERUS_TEST_RUN=1 cargo tarpaulin --out html
## Result: tarpaulin-report.html

Closing all relevant issues and PRs for now.

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

Successfully merging this pull request may close these issues.

feat(ci): report code coverage
1 participant