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.
@@ -4,7 +4,7 @@ const testConfigFields = {
4
4
  schema: z.string().optional(),
5
5
  cli: {
6
6
  flags: "--test-pattern <pattern>",
7
- description: "Filter tests by name pattern.",
7
+ description: "Filter tests by Lua pattern (escape - as %-).",
8
8
  },
9
9
  },
10
10
  tag_whitelist: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-test-cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A CLI to run FactorioTest.",
5
5
  "license": "MIT",
6
6
  "repository": {
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...]", "Test patterns to filter (OR logic)");
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) {