hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
290 stars 129 forks source link

feat: enable boot contracts coverage #1412

Closed hugocaillard closed 2 months ago

hugocaillard commented 2 months ago

Description

In some context (Stacks core developers or others power users), Clarinet can be used to unit tests boot contracts (bns, pox, signers, etc). In this cases, Clarinet should be able to report code coverage for such contract. This is what this PR allow. As long as the user provides a path to the copy of the boot contracts that are being tested.

See it in action here: https://github.com/hugocaillard/pox-testing-sample/pull/3