|
|
|
@ -22,10 +22,19 @@ $ npm install --save-dev solidity-coverage |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### Run |
|
|
|
|
|
|
|
|
|
#### Option 1 |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
$ ./node_modules/.bin/solidity-coverage |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Option 2 |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
$ $(npm bin)/solidity-coverage |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Tests run significantly slower while coverage is being generated. Your contracts are double-compiled |
|
|
|
|
and a 1 to 2 minute delay between the end of the second compilation and the beginning of test execution |
|
|
|
|
is possible if your test suite is large. Large Solidity files can also take a while to instrument. |
|
|
|
|