diff --git a/README.md b/README.md
index 4ff578b0..2fceb17e 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ npx buidler coverage [command-options]
| Option
| Example
| Description
|
|--------------|------------------------------------|--------------------------------|
| file | `--file="test/registry/*.js"` | (Truffle) Filename or glob describing a subset of JS tests to run. (Globs must be enclosed by quotes.)|
-| testFiles | `--testFiles test/file.js` | (Buidler) JS test file(s) to run.|
+| testfiles | `--testfiles test/file.js` | (Buidler) JS test file(s) to run.|
| solcoverjs | `--solcoverjs ./../.solcover.js` | Relative path from working directory to config. Useful for monorepo packages that share settings. (Path must be "./" prefixed) |
| network | `--network development` | Use network settings defined in the Truffle or Buidler config |
| temp[*][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] |
diff --git a/dist/buidler.plugin.js b/dist/buidler.plugin.js
index dfdd0dc1..3f33867b 100644
--- a/dist/buidler.plugin.js
+++ b/dist/buidler.plugin.js
@@ -26,7 +26,7 @@ function plugin() {
task("coverage", "Generates a code coverage report for tests")
- .addOptionalParam("testFiles", ui.flags.file, null, types.string)
+ .addOptionalParam("testfiles", ui.flags.file, null, types.string)
.addOptionalParam("solcoverjs", ui.flags.solcoverjs, null, types.string)
.addOptionalParam('temp', ui.flags.temp, null, types.string)
@@ -112,10 +112,10 @@ function plugin() {
// ======
// Tests
// ======
- const testFiles = args.testFiles ? [args.testFiles] : [];
+ const testfiles = args.testfiles ? [args.testfiles] : [];
try {
- await env.run(TASK_TEST, {testFiles: testFiles})
+ await env.run(TASK_TEST, {testFiles: testfiles})
} catch (e) {
error = e;
}
diff --git a/test/units/buidler/flags.js b/test/units/buidler/flags.js
index 5cf7e317..e5ee9946 100644
--- a/test/units/buidler/flags.js
+++ b/test/units/buidler/flags.js
@@ -85,9 +85,9 @@ describe('Buidler Plugin: command line options', function() {
verify.lineCoverage(expected);
});
- it('--testFiles test/', async function() {
+ it.only('--testfiles test/', async function() {
const taskArgs = {
- testFiles: path.join(
+ testfiles: path.join(
buidlerConfig.paths.root,
'test/specific_a.js'
)