also looking at this
Unify discovery and programmatic test execution
#23
12 files
+656
-169
| @@ -95,15 +95,20 @@ This will automatically discover and run all `*.test.zig` files in the `tests` d | ||
| 95 | 95 | - `--no-recursive` - Disable recursive directory search |
| 96 | 96 | - `--bail` - Stop on first failure |
| 97 | 97 | - `--filter <text>` / `--grep <text>` - Run only Zig tests whose names contain the text |
| 98 | - `--reporter <name>` - Use spec, dot, JSON, TAP, or JUnit output | |
| 99 | - `--junit-output <file>` - Set the JUnit XML path | |
| 100 | - `--timeout <ms>` - Mark files that exceed the global time budget as failed | |
| 98 | 101 | - `--shard-index <N>` - Run one one-based file shard |
| 99 | 102 | - `--shard-count <N>` - Set the total number of file shards |
| 100 | 103 | - `--no-color` - Disable color in child Zig test processes |
| 101 | 104 | - `--verbose` - Show detailed output |
| 102 | 105 | |
| 103 | Discovery mode rejects options that it cannot honor yet instead of silently | |
| 104 | ignoring them. Reporter selection, quiet output, timeouts, parallel jobs, | |
| 105 | snapshot updates, memory profiling, JUnit output, and the web UI require the | |
| 106 | shared execution pipeline planned for future releases. | |
| 106 | Discovery and programmatic execution share the same test-plan, lifecycle, | |
| 107 | result, and reporter model. Discovery still rejects options it cannot honor | |
| 108 | instead of silently ignoring them: quiet output, parallel jobs, snapshot | |
| 109 | updates, memory profiling, and the web UI remain programmatic-only. See | |
| 110 | [the execution pipeline architecture](docs/execution-pipeline.md) for extension | |
| 111 | points, timeout semantics, and migration guidance. | |
| 107 | 112 | |
| 108 | 113 | **Examples:** |
| 109 | 114 | |
| @@ -634,7 +639,9 @@ zig-test --no-color | ||
| 634 | 639 | | `--version` | `-v` | Show version information | |
| 635 | 640 | | `--bail` | `-b` | Stop on first failure | |
| 636 | 641 | | `--filter <pattern>` | | Run only tests matching pattern | |
| 637 | | `--reporter <name>` | | Set reporter (spec, dot, json) | | |
| 642 | | `--reporter <name>` | | Set reporter (spec, dot, json, tap, junit) | | |
| 643 | | `--junit-output <file>` | | Set the JUnit XML output path | | |
| 644 | | `--timeout <ms>` | | Set the global test timeout | | |
| 638 | 645 | | `--verbose` | | Enable verbose output | |
| 639 | 646 | | `--quiet` | `-q` | Minimal output | |
| 640 | 647 | | `--no-color` | | Disable colored output | |