0.0.12 • Published 1 year ago

runplaywright v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Playwright test runner

npm package

A tests runner for Playwright

Install

npm install -g runplaywright
# or
yarn global add runplaywright
# install the playwright stuff
npx playwright install

Usage

The tests are grouped by playbooks in a base folder like tests/src. See the example

Commands

Generate config files

cd myproject/tests
gentestsconf

This will generate default Playwright config files

Show all the playbooks and tests available

List all the tests and playbooks in a project:

cd myproject
showtests

Run tests headless

The runtest command run the tests headless. Arguments:

playbook: to run a whole playbook. Example:

runtest playbook=blog

test: to run a single test. Example:

runtest test=blog/add_post

browser: to run in a specific browser. Example:

runtest browser=firefox

conf: to run in a specific configuration: desktop or mobile. Example:

runtest conf=desktop

Run tests in browser

The playtest command run the tests in a browser

All the arguments are the same as above except conf that is not available in play mode

It is possible to cumulate the params above. To play a single test in Firefox:

playtest test=blog/list_posts browser=firefox
0.0.11

1 year ago

0.0.12

1 year ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago