Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit c17ac12

Browse files
committed
fix(cli): allow running from command line without a config file
If all necessary fields are specified (e.g. seleniumAddress and at least one spec), a config file shouldn't be necessary.
1 parent ec16138 commit c17ac12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/cli.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,11 @@ while(args.length) {
251251
}
252252
}
253253

254-
merge(config, require(configPath).config);
254+
if (configPath) {
255+
merge(config, require(configPath).config);
256+
} else {
257+
configDir = "./";
258+
}
255259
merge(config, commandLineConfig);
256260

257261
var sauceAccount;

0 commit comments

Comments
 (0)