Skip to content

Fix/reporter grep string#824

Merged
DavertMik merged 9 commits into
2.xfrom
fix/reporter-grep-string
May 24, 2026
Merged

Fix/reporter grep string#824
DavertMik merged 9 commits into
2.xfrom
fix/reporter-grep-string

Conversation

@DavertMik
Copy link
Copy Markdown
Contributor

No description provided.

DavertMik and others added 9 commits May 23, 2026 02:55
Replace module-load argv hand-parsing with a commander preAction hook
that reads the already-parsed --filter-list option and reuses
parsePipeOptions() to extract the format. Avoids import-time side
effects on process.env and removes a duplicate ad-hoc regex parser.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replace the embedded "format=" pipe option with a proper commander
--format flag on the run command. The CLI forwards it to the coverage
pipe via client.pipeStore.outputFormat instead of parsing it out of the
filter-list string.

Usage:
  testomatio run "cmd" --filter-list "coverage:file=cov.yml" --format grep

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add a "Machine-readable output with --format" section to the Coverage
pipe docs covering grep/json/newline/ids formats with piping examples,
and list --filter-list / --format under the run command options in the
CLI reference. Also shorten an overly long example comment in cli.js.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Move the formatFilterListIds() call out of the coverage pipe and into
the run action, so any pipe that returns a test list goes through the
same output path. --filter-list now always produces machine-readable
stdout (default format "ids"), banner is suppressed whenever --filter-list
or --format is set, and the duplicate "Grep string:" / dryRun plumbing
is gone.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
When the user explicitly passes --format they are scripting, so the
"Full Running Command" hint becomes stderr noise. Keep it only for
interactive --filter-list use (no explicit format).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Cover all four formats (grep/json/newline/ids), verify that --format
json produces valid, round-trippable JSON (including for ids with
quotes/backslashes/newlines), and assert that every format preserves
id count and order. Guards against silent format drift.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@DavertMik DavertMik merged commit 5f59e2d into 2.x May 24, 2026
9 checks passed
@DavertMik DavertMik deleted the fix/reporter-grep-string branch May 24, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant