npx playwright test

Category: Web App Development

npx playwright test

Run the Playwright test suite

Executes every test file matching the default pattern, running browsers headlessly and reporting failures with traces. Tests live in files like tests/example.spec.js. Add --headed to watch them run in a visible browser.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.