A test runner for Playwright
npm install runplaywright
A tests runner for Playwright
``bash`
npm install -g runplaywrightor
yarn global add runplaywrightinstall the playwright stuff
npx playwright install
The tests are grouped by playbooks in a base folder like tests/src. See the example
`bash`
cd myproject/tests
gentestsconf
This will generate default Playwright config files
List all the tests and playbooks in a project:
`bash`
cd myproject
showtests
The runtest command run the tests headless. Arguments:
playbook: to run a whole playbook. Example:
`bash`
runtest playbook=blog
test: to run a single test. Example:
`bash`
runtest test=blog/add_post
browser: to run in a specific browser. Example:
`bash`
runtest browser=firefox
conf: to run in a specific configuration: desktop or mobile. Example:
`bash`
runtest conf=desktop
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:
`bash``
playtest test=blog/list_posts browser=firefox