Skip to content

Run YAML cases through Rstest#2537

Draft
quanru wants to merge 1 commit into
mainfrom
codex/rstest-yaml-runner
Draft

Run YAML cases through Rstest#2537
quanru wants to merge 1 commit 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

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 35900a2
Status: ✅  Deploy successful!
Preview URL: https://ece3dfdb.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

i'lll start a new branch in Rstest to joint development with this branch in Midscene.

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