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.
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:
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.