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
Copy file name to clipboardExpand all lines: README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ A working example can be found at [openzeppelin-contracts, here.][35]
58
58
| solcoverjs |`--solcoverjs ./../.solcover.js`| Relative path from working directory to config. Useful for monorepo packages that share settings. (Path must be "./" prefixed) |
59
59
| network |`--network development`| Use network settings defined in the Hardhat config |
60
60
| 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]|
61
+
| matrix | `--matrix` | Generate a JSON object that maps which mocha tests hit which lines of code. (Useful
62
+
as an input for some fuzzing, mutation testing and fault-localization algorithms.) [More...][39]|
| skipFiles |*Array*|`['Migrations.sol']`| Array of contracts or folders (with paths expressed relative to the `contracts` directory) that should be skipped when doing instrumentation. |
82
82
| measureStatementCoverage |*boolean*|`true`| Computes statement (in addition to line) coverage. [More...][34]|
83
83
| measureFunctionCoverage |*boolean*|`true`| Computes function coverage. [More...][34]|
84
+
| measureModifierCoverage |*boolean*|`true`| Computes each modifier invocation as a code branch. [More...][34]|
85
+
| modifierWhitelist |*String[]*|`[]`| List of modifier names (ex: "onlyOwner") to exclude from branch measurement. (Useful for modifiers which prepare something instead of acting as a gate.)) |
86
+
| matrixOutputPath |*String*|`./testMatrix.json`| Relative path to write test matrix JSON object to. [More...][39]|
87
+
| mochaJsonOutputPath |*String*|`./mochaOutput.json`| Relative path to write mocha JSON reporter object to. [More...][39]|
88
+
| abiOutputPath |*String*|`./humanReadableAbis.json`| Relative path to write diff-able ABI data to |
84
89
| istanbulFolder |*String*|`./coverage`| Folder location for Istanbul coverage reports. |
| 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.|
@@ -92,6 +97,9 @@ module.exports = {
92
97
| 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]|
93
98
| configureYulOptimizer |*Boolean*| false | (Experimental) Setting to `true` should resolve "stack too deep" compiler errors in large projects using ABIEncoderV2 |
94
99
| solcOptimizerDetails |*Object*|`undefined`|(Experimental) Must be used in combination with `configureYulOptimizer`. Allows you configure solc's [optimizer details][1001]. Useful if the default remedy for stack-too-deep errors doesn't work in your case (See FAQ below). |
100
+
| client |*Object*|`require("ganache-core")`| Ganache only: useful if you need a specific ganache version |
0 commit comments