mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1254] [MERGED] [codex] Harden local test scripts #5004
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5004
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1254
Author: @Xelvanis
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @undefined
Base:
refactor← Head:codex/harden-local-test-scripts📝 Commits (1)
50abfedharden local test scripts📊 Changes
6 files changed (+51 additions, -8 deletions)
View changed files
📝
.github/workflows/ci.yml(+1 -1)📝
README.md(+9 -0)📝
docs/developer/run-build.html(+12 -0)📝
package.json(+4 -2)📝
playwright.config.ts(+25 -4)📝
vitest.config.ts(+0 -1)📄 Description
## Linked issue
No linked issue; cleanup/chore from local test-script audit.
Why this change
The local test commands had two weak failure paths:
pnpm testallowed an empty Vitest suite to pass, which could hide broken test globs or accidental test removal.What changed
pnpm testfail when no tests are collected.pnpm test:allow-emptyfor the rare intentional empty-suite case.pnpm test:uibuild first, then run Playwright.pnpm test:ui:runfor CI or local flows that already builtdist/.4175by default, start a fresh strict preview server, and allowPLAYWRIGHT_PORToverrides.PLAYWRIGHT_PORTso invalid values fail with a clear config error.README.mdanddocs/developer/run-build.html.Refactor impact
Primary owner:
Testing/tooling and developer docs.
Impact areas reviewed:
Boundary notes:
No product runtime, engine, shared API, mode owner, Rust, storage, provider, or remote-runtime boundaries changed.
Pressure points touched:
None. This PR only changes test tooling, CI command wiring, and docs.
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Commands run locally:
pnpm testpnpm typecheckpnpm check:docspnpm test:uipnpm test:ui:runpnpm exec vitest run tests/__definitely_missing__/**/*.test.tsfailed as expected when no tests were collected.pnpm exec vitest run --passWithNoTests tests/__definitely_missing__/**/*.test.tspassed as expected for the explicit allow-empty path.PLAYWRIGHT_PORT=abc pnpm exec playwright test --listfailed as expected withPLAYWRIGHT_PORT must be an integer from 1 to 65535.git diff --checkpassed, with only Git CRLF warnings.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdDocs changed:
README.mdanddocs/developer/run-build.html.No
CHANGELOG.mdexists in this branch, and this is not user-facing product behavior.UI evidence
N/A. No visible UI behavior changed.
Summary by CodeRabbit
Documentation
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.