factorio-test-cli 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/test-config.js +1 -1
- package/package.json +1 -1
- package/run.js +5 -1
package/config/test-config.js
CHANGED
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -23,6 +23,10 @@ When using variadic options (--mods, --factorio-args, etc.) with filter patterns
|
|
|
23
23
|
use -- to separate them:
|
|
24
24
|
factorio-test run -p ./my-mod --mods quality space-age -- "inventory"
|
|
25
25
|
|
|
26
|
+
Patterns use Lua pattern syntax (not regex). Special characters like - must be
|
|
27
|
+
escaped with %:
|
|
28
|
+
factorio-test run -p ./my-mod "my%-test" Match "my-test" (escape the dash)
|
|
29
|
+
|
|
26
30
|
Examples:
|
|
27
31
|
factorio-test run -p ./my-mod Run all tests
|
|
28
32
|
factorio-test run -p ./my-mod -v Run with verbose output
|
|
@@ -30,7 +34,7 @@ Examples:
|
|
|
30
34
|
factorio-test run -p ./my-mod -b Bail on first failure
|
|
31
35
|
factorio-test run -p ./my-mod "inventory" Run tests matching "inventory"
|
|
32
36
|
`)
|
|
33
|
-
.argument("[filter...]", "
|
|
37
|
+
.argument("[filter...]", "Lua patterns to filter tests (OR logic)");
|
|
34
38
|
registerAllCliOptions(thisCommand);
|
|
35
39
|
thisCommand.action((patterns, options) => runTests(patterns, options));
|
|
36
40
|
async function setupTestRun(patterns, options) {
|