Skip to content

fix(snapshot-tests): Guard CLI snapshot process output#421

Merged
cameroncooke merged 1 commit into
mainfrom
cameroncooke/fix/snapshot-cli-stderr-guard
May 17, 2026
Merged

fix(snapshot-tests): Guard CLI snapshot process output#421
cameroncooke merged 1 commit into
mainfrom
cameroncooke/fix/snapshot-cli-stderr-guard

Conversation

@cameroncooke
Copy link
Copy Markdown
Collaborator

@cameroncooke cameroncooke commented May 17, 2026

Guard CLI domain snapshot tests against process-level failures and stderr noise.

The snapshot suite is intended to cover domain tool success and failure output, not CLI bootstrap or parser errors. Before this change, the CLI snapshot harness only read stdout, so a snapshot could pass while the actual CLI process failed unusually, was terminated, had no exit status, or emitted stderr that users would see.

This keeps fixture contents focused on stdout domain output while failing fast on process-level conditions that should not be hidden by snapshot normalization.

Also renames the CLI and MCP JSON snapshot entrypoint files so they describe the runtime suites they register, instead of implying fixture parity assertions.

Fail CLI domain snapshot invocations when the CLI process itself fails,
is terminated, has no exit status, or emits unexpected stderr. This keeps
fixtures focused on domain tool output while preventing hidden process-level
noise from being ignored.

Co-Authored-By: OpenAI Codex <codex@openai.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 17, 2026

Open in StackBlitz

npm i https://pkg.pr.new/xcodebuildmcp@421

commit: 7320348

@cameroncooke cameroncooke marked this pull request as ready for review May 17, 2026 18:41
@cameroncooke cameroncooke merged commit bf65abc into main May 17, 2026
34 checks passed
@cameroncooke cameroncooke deleted the cameroncooke/fix/snapshot-cli-stderr-guard branch May 17, 2026 18:42
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