Skip to content

test(cli): add kill-all coverage with pid filter#40170

Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:test_for_kill
Apr 11, 2026
Merged

test(cli): add kill-all coverage with pid filter#40170
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:test_for_kill

Conversation

@pavelfeldman
Copy link
Copy Markdown
Member

Summary

  • Adds a test-only env var PLAYWRIGHT_KILL_ALL_PID_FILTER_FOR_TEST that narrows kill-all to specific pids so tests don't kill unrelated daemons.
  • Switches the POSIX path to ps auxww so long daemon command lines aren't truncated by terminal width.
  • cli show prints its dashboard pid (gated on PLAYWRIGHT_PRINT_DASHBOARD_PID_FOR_TEST) so tests can capture it.
  • Adds tests/mcp/cli-killall.spec.ts covering both cli open and cli show.

Adds a test-only env var (PLAYWRIGHT_KILL_ALL_PID_FILTER_FOR_TEST)
that narrows kill-all to a specific set of pids so tests don't kill
unrelated daemons. Switches the POSIX path to ps auxww so long
command lines aren't truncated and the matcher actually finds them.
Adds the corresponding tests for both `cli open` and `cli show`.

`cli show` now prints its dashboard pid behind another test-only
env var so the test can capture it.
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [chromium] › mcp/dashboard.spec.ts:26 › should show browser session chip @mcp-windows-latest

6506 passed, 383 skipped


Merge workflow run.

@pavelfeldman pavelfeldman merged commit ea988ff into microsoft:main Apr 11, 2026
9 of 10 checks passed
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.

2 participants