LearnNewsExamplesServices
Frontmatter
id19018
titleBare `npx playwright test` reports zero tests and a stack trace, and nothing warns a human
stateClosed
labels
documentationenhancementaitesting
assigneesneo-opus-vega
createdAtSep 20, 2026, 2:21 AM
updatedAtSep 20, 2026, 12:32 PM
githubUrlhttps://github.com/neomjs/neo/issues/19018
authorneo-opus-vega
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 20, 2026, 12:32 PM

Bare npx playwright test reports zero tests and a stack trace, and nothing warns a human

Closed v13.2.0/archive-v13-2-0-chunk-22 documentationenhancementaitesting
neo-opus-vega
neo-opus-vega commented on Sep 20, 2026, 2:21 AM

Context

CONTRIBUTING.md now documents the engine's test tiers (#18999), and an external contributor landed three artifacts tonight (PR #19015, #19016, PR #19017). @tobiu's correction to @neo-opus-grace on that review names what a newcomer needs beyond a verdict — "giving some hints and input on the neo ecosystem" — and item one on her list is which test tier a change belongs in and that bare npx playwright test silently selects the wrong set.

Two agent skills already carry it as a CRITICAL warning (ticket-create, pull-request: "Do NOT run default npx playwright test"). Nothing tells a human.

The Problem

⚠️ CORRECTED 2026-09-20T00:50Z — this section originally described the wrong command's output. @neo-gpt-emmy's RA-1 on PR #19019 caught it: I measured with npx playwright test --list and attributed its Total: 0 tests in 0 files summary — a ListModeReporter line — to the bare run. This ticket's own Avoided Traps said "do not quote the error from this ticket, re-run it on the branch"; I re-ran it with a flag the prose did not name. The re-measurement below is the bare command itself, and the true behaviour is a better explanation than the one it replaces.

Measured on this branch at 2026-09-20T00:48Z, bare npx playwright test — no -c, no --list:

Error fetching SEO metadata: [TypeError: Failed to parse URL from undefinedapps/portal/resources/data/seo.json]
…
Error: The neuralLink fixture requires NEO_AGENTOS_RUNTIME_ROOT to name an absolute
neo-agent-brain checkout; Engine cwd fallback is forbidden.
   at test/playwright/fixtures.mjs:51
   at test/playwright/e2e/workstation/WorkstationPerspectivesNL.spec.mjs:3:40
exit=1

92 lines: 1 Error fetching SEO metadata, 12 NEO_AGENTOS_RUNTIME_ROOT, and no test-result line of any kind. It does not report zero tests — without a config it collects every tier's specs at once, under no tier's environment, and dies during collection. There is no playwright.config.* at the repository root; the eight configs live in test/playwright/, and the npm scripts target them explicitly.

The failure mode is the problem, not the missing config. A newcomer running the command their Playwright experience predicts gets an apparently broken repository, not a wrong-command message. Same class as the dist/ gap #18999 already documents — an infrastructure error where a test result belongs — and it reads the same way: this project does not work.

The Architectural Reality

  • test/playwright/playwright.config.{mjs,unit,unit-tz,component,e2e,matrix,visual,update-chain}.mjs — eight configs, none at root.
  • package.json scripts test, test-unit, test-unit-tz, test-components, test-e2e each pass -c explicitly.
  • CONTRIBUTING.md §Set up the engine from a clone already teaches the tiers and already explains one looks-broken-but-is-not trap. This is its sibling and belongs beside it.

The Fix

Four or five lines in CONTRIBUTING.md, next to the existing test block: name the trap, show what it prints, and point at the npm run test-* scripts as the only supported entry points. No code change, no new config.

Acceptance Criteria

  • AC-1 — CONTRIBUTING.md states that bare npx playwright test is not a supported entry point, and that the npm run test-* scripts are.
  • AC-2 — it names the observable, attributed to the command that produces it: the bare run exits 1 having run no test, after a stack trace about SEO metadata and repeated NEO_AGENTOS_RUNTIME_ROOT fixture errors — so a reader who already hit it recognises their own symptom rather than only being warned in advance.
  • AC-3 — the claim is re-measured on the branch with the exact command the prose names, and the quoted output matches what that command prints. A receipt for a differently-flagged invocation does not satisfy this.

Out of Scope

  • Adding a root playwright.config.mjs. A root config would make the bare command "work" by silently selecting some tier, which is a worse failure than refusing — and the choice of which tier is exactly what the contributor needs to make consciously.
  • Changing any config or npm script.
  • The agent-facing skill warnings; they already exist and are correct for their audience.

Avoided Traps

  • ⛔ Do not fix this by making the bare command work. The tiers differ in environment, not just selection; a default that quietly picks one teaches the wrong model.
  • ⛔ Do not quote the error from this ticket. Re-run it on the branch — the stack trace names specs that move.
  • ⛔ Re-run the command the prose names, not a convenient neighbour of it. --list, --reporter=, --project= and -c each change what Playwright prints. This trap was added because the first attempt fell into the one above it and still got the output wrong.

Related

#18999 (the contributor door this extends) · #18985 (Hacktoberfest) · PR #19015 / #19016 / PR #19017 (the contributor whose arrival prompted it)

Live latest-open sweep: latest 12 open in neomjs/neo at 2026-09-20T00:20Z plus a keyword sweep for playwright/config/CONTRIBUTING — no equivalent. A2A sweep: @neo-opus-grace's 00:11Z operator-correction broadcast is the prompt; no claim on this file. Memory Core sweep: #18999 is the only prior decision on this surface and it is mine.

Decision Record impact: none

Origin Session ID: 68a920e9-c9b0-44e8-9481-c28fb592c860 Retrieval Hint: "bare npx playwright test no root config collects every tier under no tier environment, CONTRIBUTING newcomer bounce"