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
| file |`--file="test/registry/*.js"`| Filename or glob describing a subset of JS tests to run. (Globs must be enclosed by quotes.)|
61
+
| file |`--file="test/registry/*.js"`| (Truffle) Filename or glob describing a subset of JS tests to run. (Globs must be enclosed by quotes.)|
62
+
| testfiles |`--testfiles test/file.js`| (Buidler) JS test file(s) to run.|
45
63
| solcoverjs |`--solcoverjs ./../.solcover.js`| Relative path from working directory to config. Useful for monorepo packages that share settings. (Path must be "./" prefixed) |
46
-
| network |`--network development`| Use network settings defined in the Truffle config |
64
+
| network |`--network development`| Use network settings defined in the Truffle or Buidler config |
47
65
| temp[<sup>*</sup>][14]|`--temp build`|:warning:**Caution**:warning: Path to a *disposable* folder to store compilation artifacts in. Useful when your test setup scripts include hard-coded paths to a build directory. [More...][14]|
| skipFiles |*Array*|`['Migrations.sol']`| Array of contracts or folders (with paths expressed relative to the `contracts` directory) that should be skipped when doing instrumentation. |
| mocha |*Object*|`{ }`|[Mocha options][3] to merge into existing mocha config. `grep` and `invert` are useful for skipping certain tests under coverage using tags in the test descriptions.|
74
91
| onServerReady[<sup>*</sup>][14]|*Function*|| Hook run *after* server is launched, *before* the tests execute. Useful if you need to use the Oraclize bridge or have setup scripts which rely on the server's availability. [More...][23]|
75
92
| onCompileComplete[<sup>*</sup>][14]|*Function*|| Hook run *after* compilation completes, *before* tests are run. Useful if you have secondary compilation steps or need to modify built artifacts. [More...][23]|
76
-
| onTestsComplete[<sup>*</sup>][14]|*Function*|| Hook run *after* the tests complete, *before* Istanbul reports are generated.|
77
-
| onIstanbulComplete[<sup>*</sup>][14]|*Function*|| Hook run *after* the Istanbul reports are generated, *before* the ganache server is shut down. Useful if you need to clean resources up.|
93
+
| onTestsComplete[<sup>*</sup>][14]|*Function*|| Hook run *after* the tests complete, *before* Istanbul reports are generated.[More...][23]|
94
+
| onIstanbulComplete[<sup>*</sup>][14]|*Function*|| Hook run *after* the Istanbul reports are generated, *before* the ganache server is shut down. Useful if you need to clean resources up.[More...][23]|
78
95
79
96
[<sup>*</sup> Advanced use][14]
80
97
98
+
## API
99
+
100
+
Solidity-coverage's core methods and many utilities are available as an API.
0 commit comments