Last active
March 4, 2022 10:09
-
-
Save boysbee/629691e510ac1c705abf64d1c9b052aa to your computer and use it in GitHub Desktop.
Playwright Simple command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run all the tests | |
npm playwright test | |
# Run a single test file | |
npm playwright test tests/todo-page.spec.ts | |
# Run a set of test files | |
npm playwright test tests/todo-page/ tests/landing-page/ | |
# Run files that have my-spec or my-spec-2 in the file name | |
npm playwright test my-spec my-spec-2 | |
# Run the test with the title | |
npm playwright test -g "add a todo item" | |
# Run tests in headed browsers | |
npm playwright test --headed | |
# Run tests in a particular browser (config-less mode) | |
npm playwright test --browser=webkit | |
# Run tests in all browsers (config-less mode) | |
npm playwright test --browser=all | |
# Disable parallelization | |
npm playwright test --workers=1 | |
#Choose a reporter | |
npm playwright test --reporter=dot | |
# Run in debug mode with Playwright Inspector | |
npm playwright test --debug | |
# Ask for help | |
npm playwright test --help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment