Skip to content

Add code coverage tooling to the CI #172

@ethanfrey

Description

@ethanfrey

It would be great to see the code coverage on the contract code from the unit tests. To see if critical checks/branches are properly covered.

One popular tool seems to be tarpaulin. But I am open to any other tool as well. (Note tarpaulin has a caveat about signals which is needed for any of the wasm/vm tests, but not when running contracts as native rust).

Deliverable:

  • A command to get code coverage for each contract (bonus: also the packages)
  • A way to visualize it locally (even if just text)
  • Automated upload to a web service in CI (eg. https://coveralls.io or https://codecov.io)

It would nice to run this locally as well. You can look at #171 as a possible way for scripts to work in CI as well as locally.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions