Skip to content

test: split formatter CLI tests - #297

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/split-fmt-cli-tests
Aug 10, 2026
Merged

test: split formatter CLI tests#297
chenjiahan merged 1 commit into
mainfrom
chenjiahan/split-fmt-cli-tests

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

The 60 formatter CLI cases were serialized in one test file and dominated the rstack test critical path. This PR splits them into five balanced files for Rstest file-level parallelism while keeping temporary-project setup and CLI helpers shared.

Performance

Local macOS benchmark with Node.js 24.12.0 and pnpm 11.20.0. Warm-up runs were excluded, and the table shows median wall time from three runs per layout.

Scope Before After Change
Formatter CLI suite 6.79s 1.83s -4.96s (-73.0%)
Full rstack suite 7.16s 3.64s -3.52s (-49.2%)

The formatter case count remains 60 and the full rstack case count remains 212.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 95007d6
Status: ✅  Deploy successful!
Preview URL: https://297cee73.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-split-fmt-cli-tes.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 1f15c86 into main Aug 10, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/split-fmt-cli-tests branch August 10, 2026 23:57
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