@mochify/driver-playwright
v1.0.2
Published
Playwright driver for Mochify
Downloads
74
Readme
Mochify driver for Playwright
Run tests in Playwright.
Use this driver with the Mochify CLI to run Mocha tests in Playwright. See Mochify if you are looking for Mochify drivers for other browser testing environments.
Usage
Install the package from npm:
npm i @mochify/driver-playwright -Dand pass it to the CLI:
mochify --driver playwright ...Driver options
The driver allows the following options to be set:
stderr: Defines the stream the test output will be written to. Defaults toprocess.stderrengine: The browser engine to use. Right now, Playwright supportschromium,firefoxandwebkit. Defaults tofirefox.url: Run tests in the context of the given URL. Defaults to an empty document served using thefile:scheme.
Passing through launch options to Playwright
In addition to the driver options documented above, driver-playwright allows you to pass through all of Playwright's other launchOptions using the defaults as described here.
