You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set a `coverage` network in truffle-config.js (see [Network Configuration](#network-configuration)) and then run:
25
25
```
26
26
$ npx solidity-coverage
27
27
```
28
28
29
-
**NB:** Most projects will also need to set a `coverage` network in
30
-
truffle-config.js. See [Network Configuration](#network-configuration).
31
-
32
29
### Usage notes:
33
30
+ For pragma solidity >=0.4.22 <0.6.0 / Petersburg / Truffle v4 and v5
34
31
+ Tests run more slowly while coverage is being generated.
@@ -41,7 +38,9 @@ a local dependency, please see [this section](https://github.com/sc-forks/solidi
41
38
### Network Configuration
42
39
43
40
By default, this tool connects to a coverage-enabled fork of ganache-cli
44
-
called **testrpc-sc** on port 8555. (It's a dependency - there's nothing extra to download.)
41
+
called **testrpc-sc** on port 8555.
42
+
+ it's a dependency - there's nothing extra to download.
43
+
+ the solidity-coverage command launches it automatically in the background. (See [this section of the FAQ](https://github.com/sc-forks/solidity-coverage/blob/master/docs/faq.md#running-testrpc-sc-on-its-own) if you need to launch it separately yourself)
45
44
46
45
In `truffle-config.js`, add a coverage network following the example below.
0 commit comments