дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-29 13:52:36 +02:00
A Playwright project had no test tree and no Rerun Failed Tests: its output went through the Jest / Vitest parser, single tests ran with Jest's `-t`, and projects without a `test` script weren't detected at all. - Detection: a `package.json` script that runs `playwright test` is a test configuration and records `testRunner: "playwright"` (new optional `RunExtras.test_runner`, `test-runner` in `run.toml`); a package with a `playwright.config.*` that no script runs gets `npx playwright test`. - Test tree: test runs add `--reporter=list` unless a reporter is named, parsed into file › [project] › describe chain › test with status, duration, location and failure details. - Gutter: `test.describe` blocks and `fixme` / `fail` / `serial` tests get run / debug icons and run by declaration line (`file:line`); in a project with Playwright and another runner, specs run on Playwright's configuration and other tests on the other runner's. - Rerun Failed Tests / run selected tests: the files plus `--grep` on the describe chain and title, with `--project` when the run named projects. New fixture `fixtures/playwright-app`; `smoke/run.test.ts` runs it after `ts-app`. Co-authored-by: wildcatDownstairs <[email protected]>
8 рядки
219 B
TypeScript
8 рядки
219 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
// The IDE replaces the reporter with `list` for its test tree; `dot` is what a terminal shows.
|
|
export default defineConfig({
|
|
testDir: "tests",
|
|
reporter: "dot",
|
|
});
|