Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

playwright-watch



npm


npm


github


github issues



build


GitHub Testing Status









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.js

playwright-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)