Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamyoki/playwright-watch
🙈🐵 Run Playwright in watch mode
https://github.com/iamyoki/playwright-watch
automation chrome cli end-2-end-testing npm playwright playwright-watch test
Last synced: about 2 months ago
JSON representation
🙈🐵 Run Playwright in watch mode
- Host: GitHub
- URL: https://github.com/iamyoki/playwright-watch
- Owner: iamyoki
- License: mit
- Created: 2021-08-29T10:17:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-24T19:54:24.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T16:08:53.390Z (2 months ago)
- Topics: automation, chrome, cli, end-2-end-testing, npm, playwright, playwright-watch, test
- Language: JavaScript
- Homepage:
- Size: 6.98 MB
- Stars: 56
- Watchers: 1
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: Contributing.md
- License: License.md
Awesome Lists containing this project
README
playwright-watch
playwright
+
watch
=
playwright-watch
🙈🐵 Run Playwright in watch mode
## Usage
use exactly the same as Playwright, only in watch mode
```bash
npx playwright-watch test
```> Note: There is a peer dependency on `playwright`.
### Or you can install locally
```bash
yarn add playwright-watch -D#or
npm install playwright-watch --save-dev
```Add script to your package.json
```json
{
"test:watch": "playwright-watch test"
}
```or
```json
{
"test": "playwright test",
"test:watch": "playwright-watch exec yarn test"
}
```## CLI Details
run `npx playwright-watch --help` to see more details.
```bash
🙈 playwright-watch🐵 Run Playwright in watch mode
Commands:
playwright-watch Use the same as Playwright but under watch
(e.g. playwright-watch test) [default]
playwright-watch exec Run commands when changes are detected
(e.g. playwright-watch exec yarn test)Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
-c, --config Configuration file of Playwright (default:
playwright.config.js), the `testMatch` prop will be watch path
(default: `.*(test|spec).(js|ts|mjs)`).Examples:
playwright-watch test
playwright-watch test --config tests/playwright.config.jsplaywright-watch exec yarn playwright test
playwright-watch exec yarn run test:e2e
playwright-watch exec echo changed
```## Author
[Yoki Yu (iamyoki)](https://github.com/iamyoki)