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"`| (Truffle) Filename or glob describing a subset of tests to run. (Globs must be enclosed by quotes and use [globby matching patterns][38])|
74
-
| testfiles |`--testfiles "test/registry/*.ts"`| (Buidler) Test file(s) to run. (Globs must be enclosed by quotes and use [globby matching patterns][38])|
74
+
| testfiles |`--testfiles "test/registry/*.ts"`| (Hardhat) Test file(s) to run. (Globs must be enclosed by quotes and use [globby matching patterns][38])|
75
75
| solcoverjs |`--solcoverjs ./../.solcover.js`| Relative path from working directory to config. Useful for monorepo packages that share settings. (Path must be "./" prefixed) |
76
-
| network |`--network development`| Use network settings defined in the Truffle or Buidler config |
76
+
| network |`--network development`| Use network settings defined in the Truffle or Hardhat config |
77
77
| 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]|
78
+
| matrix | `--matrix` | Generate a JSON object that maps which mocha tests hit which lines of code. (Useful
79
+
as an input for some fuzzing, mutation testing and fault-localization algorithms.) [More...][39]|
78
80
79
81
[<sup>*</sup> Advanced use][14]
80
82
@@ -98,6 +100,11 @@ module.exports = {
98
100
| skipFiles |*Array*|`['Migrations.sol']`| Array of contracts or folders (with paths expressed relative to the `contracts` directory) that should be skipped when doing instrumentation. |
99
101
| measureStatementCoverage |*boolean*|`true`| Computes statement (in addition to line) coverage. [More...][34]|
100
102
| measureFunctionCoverage |*boolean*|`true`| Computes function coverage. [More...][34]|
103
+
| measureModifierCoverage |*boolean*|`true`| Computes each modifier invocation as a code branch. [More...][34]|
104
+
| 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.)) |
105
+
| matrixOutputPath |*String*|`./testMatrix.json`| Relative path to write test matrix JSON object to. [More...][39]|
106
+
| mochaJsonOutputPath |*String*|`./mochaOutput.json`| Relative path to write mocha JSON reporter object to. [More...][39]|
107
+
| abiOutputPath |*String*|`./humanReadableAbis.json`| Relative path to write diff-able ABI data to |
101
108
| 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.|
0 commit comments