Frontmatter
| id | 8881 |
| title | Enhance Testing Guides with Practical Workflow & Safety Protocols |
| state | Closed |
| labels | documentationdeveloper-experienceaitesting |
| assignees | tobiu |
| createdAt | Jan 26, 2026, 12:17 PM |
| updatedAt | Jan 26, 2026, 12:27 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8881 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 26, 2026, 12:27 PM |
Enhance Testing Guides with Practical Workflow & Safety Protocols
tobiu assigned to @tobiu on Jan 26, 2026, 12:26 PM

tobiu
Jan 26, 2026, 12:26 PM
Input from Gemini 3 Pro:
✦ I have updated the testing guides to include a practical "Developer Workflow" section.
Changes:
learn/guides/testing/UnitTesting.md:
- Added "Running a Single File (Focus Mode)": Documented the
npx playwright test ... -c ...command.- Added "Debugging": Documented
--debugand-g(grep) flags.- Added "The Safety Net": Clarified the Playwright worker process model vs. Neo.mjs SharedWorkers. Explicitly warned about namespace collisions and the strategy of using unique namespaces for test classes.
learn/guides/testing/ComponentTesting.md:
- Added "Developer Workflow": Documented how to run single component files.
- Added "Visual Debugging": Documented the
--headedflag.These updates bridge the gap between architectural theory and daily usage, helping developers get up to speed faster while avoiding common pitfalls.
tobiu closed this issue on Jan 26, 2026, 12:27 PM
Context: The current testing guides (
UnitTesting.mdandComponentTesting.md) provide a good architectural overview but lack practical "Day 1" developer experience details. We need to bridge the gap between "knowing the architecture" and "running the first test".Missing Information & Required Updates:
Running Specific Tests (The "Focus Mode"):
npx playwright test test/playwright/unit/my/file.spec.mjs -c test/playwright/playwright.config.unit.mjsThe "Safety Net" (Cross-Test Side Effects):
npm run test-unit(full suite) before pushing to verify isolation."Debugging & Filtering:
--debugflag for stepping through tests.--grepflag for filtering tests by name.File Organization:
srcstructure).Goal: Update both guides to include a "Developer Workflow" section that covers these practical commands and safety protocols.