Skip to content

Run YAML cases through Rstest#2537

Draft
quanru wants to merge 13 commits into
mainfrom
codex/rstest-yaml-runner
Draft

Run YAML cases through Rstest#2537
quanru wants to merge 13 commits into
mainfrom
codex/rstest-yaml-runner

Conversation

@quanru
Copy link
Copy Markdown
Collaborator

@quanru quanru commented May 25, 2026

Summary

  • Add a Rstest-backed framework runner for Midscene YAML cases.
  • Route the existing midscene <path> YAML CLI flow through generated Rstest test files.
  • Isolate real YAML execution in a child process so Rstest workers orchestrate pass/fail behavior without owning browser/runtime teardown.
  • Preserve Midscene report and output summary generation, with focused framework unit coverage.

Why

The UI testing framework needs YAML cases to participate in Rstest's runner model without replacing the repo's Vitest-based unit tests. Running Midscene/Puppeteer logic directly inside Rstest workers caused worker lifecycle issues, so the generated tests delegate the actual YAML run to a child process.

Validation

  • pnpm run lint
  • npx nx test @midscene/cli
  • npx nx build @midscene/cli

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 25, 2026

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5151c62
Status: ✅  Deploy successful!
Preview URL: https://dcda838b.midscene.pages.dev
Branch Preview URL: https://codex-rstest-yaml-runner.midscene.pages.dev

View logs

@quanru quanru changed the title [codex] Run YAML cases through Rstest Run YAML cases through Rstest May 25, 2026
@fi3ework
Copy link
Copy Markdown
Member

fi3ework commented May 25, 2026

web-infra-dev/rstest#1320 in Rstest to joint development with this branch in Midscene.

@quanru quanru force-pushed the codex/rstest-yaml-runner branch 3 times, most recently from 843d27f to 1929915 Compare May 27, 2026 11:32
@quanru quanru force-pushed the codex/rstest-yaml-runner branch from a991b81 to e7ad0a5 Compare May 28, 2026 03:55
Comment thread packages/core/src/yaml/utils.ts Fixed
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.

3 participants