Skip to content

Commit 653fc51

Browse files
authored
Stop camel-casing testfiles flag (#443)
1 parent 97de9c6 commit 653fc51

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ npx buidler coverage [command-options]
5959
| Option <img width=200/> | Example <img width=750/>| Description <img width=1000/> |
6060
|--------------|------------------------------------|--------------------------------|
6161
| 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.|
62+
| testfiles | `--testfiles test/file.js` | (Buidler) JS test file(s) to run.|
6363
| solcoverjs | `--solcoverjs ./../.solcover.js` | Relative path from working directory to config. Useful for monorepo packages that share settings. (Path must be "./" prefixed) |
6464
| network | `--network development` | Use network settings defined in the Truffle or Buidler config |
6565
| 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] |

dist/buidler.plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function plugin() {
2626

2727
task("coverage", "Generates a code coverage report for tests")
2828

29-
.addOptionalParam("testFiles", ui.flags.file, null, types.string)
29+
.addOptionalParam("testfiles", ui.flags.file, null, types.string)
3030
.addOptionalParam("solcoverjs", ui.flags.solcoverjs, null, types.string)
3131
.addOptionalParam('temp', ui.flags.temp, null, types.string)
3232

@@ -112,10 +112,10 @@ function plugin() {
112112
// ======
113113
// Tests
114114
// ======
115-
const testFiles = args.testFiles ? [args.testFiles] : [];
115+
const testfiles = args.testfiles ? [args.testfiles] : [];
116116

117117
try {
118-
await env.run(TASK_TEST, {testFiles: testFiles})
118+
await env.run(TASK_TEST, {testFiles: testfiles})
119119
} catch (e) {
120120
error = e;
121121
}

test/units/buidler/flags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ describe('Buidler Plugin: command line options', function() {
8585
verify.lineCoverage(expected);
8686
});
8787

88-
it('--testFiles test/<fileName>', async function() {
88+
it.only('--testfiles test/<fileName>', async function() {
8989
const taskArgs = {
90-
testFiles: path.join(
90+
testfiles: path.join(
9191
buidlerConfig.paths.root,
9292
'test/specific_a.js'
9393
)

0 commit comments

Comments
 (0)