Name
Overview
Description
Coverage Tool for SmartContract. Analayzing based on bytecodes and abi specification for functions.
Requirement
Truffle v5.0.14 or higher.
## Install
`npm install contract-coverage`
## Usage
Add following code in your truffle test cases:
```js
const CoverageSubprovider = require('contract-coverager')
const engine = CoverageSubprovider.injectInTruffle(artifacts, web3)
and define before, after hook code:
example code overall:
const CoverageSubprovider = const engine = CoverageSubproviderconst VyperStorage = artifacts
CAUTION
if request method is eth_call, then this Lib re-request eth_sendTransaction with same params, for getting traceLogs.
so that, in using this coverage tool, more gas is consumes. may out of gas
error a lot of happen.
Demo
Not yet support list
- Solidity's Contract (maybe available, but not tested)