Add test coverage report and 95% target#59
Closed
clintjeff2 wants to merge 20 commits into
Closed
Conversation
greatest0fallt1me
self-requested a review
February 24, 2026 04:01
Contributor
|
@clintjeff2 please resolve the conflicts |
Contributor
Author
|
@greatest0fallt1me
|
Contributor
|
@clintjeff2 resolve the conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

chore: add test coverage report and 95% target
Summary
Implements issue #53 — adds
cargo-tarpaulinbased test coverage measurementand enforces a minimum of 95 % line coverage on every push and pull-request.
Changes
New files
tarpaulin.tomlcargo-tarpaulinconfiguration —fail-under = 95, HTML + XML + Stdout reports,lib = trueto avoid Sorobancdyliblinker issuesscripts/coverage.shcargo-tarpaulinif missing.github/workflows/coverage.ymlModified files
contracts/vault/src/test.rsNoneinitial balance, uninitialised vault, insufficient-balance guard, exact-balance deduction, andget_metafield validationREADME.md.gitignorecoverage/to keep generated HTML / XML out of gitCoverage result
100 % line coverage (24 / 24 lines) — exceeds the 95 % minimum.

How to reproduce locally
Open
coverage/tarpaulin-report.htmlin a browser for the interactive report.CI behaviour
cargo tarpaulin --config tarpaulin.tomlruns on every push tomain/masterand on every PR.Checklist
cargo test)cargo tarpaulin)tarpaulin.tomlparses without warningsscripts/coverage.shis executable and self-containedcoverage/added to.gitignoreCloses #53