diff --git a/README.md b/README.md index 56b351e..9981e27 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,17 @@ Tests can be executed via different helpers. # Installation -This is a playground for your first steps in testing, so instead of installing it from NPM it is recommended to clone it from repo instead. - -1. Clone this repository. -2. Install dependencies: +This is a playground for your first steps in testing, so instead of installing it from NPM it is recommended to clone it from repo instead and then install the dependencies: ``` -npm i +git clone git@github.com:codecept-js/examples.git codeceptjs-examples && cd codeceptjs-examples && npm install ``` This will install codeceptjs with puppeteer, webdriverio & testcafe packages. # Running Tests -Default helper is Playwright. +The default helper is Playwright. ## Playwright @@ -28,38 +25,14 @@ Use `codecept.conf.js` to run tests with Playwright: npx codeceptjs run --steps ``` -Run tests in headless mode: - -``` -HEADLESS=true npx codeceptjs run --steps -``` - -Run tests in parallel with 3 workers (headless mode): - -``` -HEADLESS=true npx codeceptjs run-workers 3 -``` - - ## Puppeteer Use `codecept.puppeteer.conf.js` to run tests with Puppeteer: ``` -npx codeceptjs run --steps -c codecept.webdriver.conf.js -``` - -Run tests in headless mode: - -``` -HEADLESS=true npx codeceptjs run --steps -c codecept.webdriver.conf.js +npx codeceptjs run --steps -c codecept.puppeteer.conf.js ``` -Run tests in parallel with 3 workers (headless mode): - -``` -HEADLESS=true npx codeceptjs run-workers 3 -c codecept.webdriver.conf.js -``` ## WebDriver @@ -69,18 +42,6 @@ Use `codecept.webdriver.conf.js` to run tests with WebDriver in Chrome: npx codeceptjs run -c codecept.webdriver.conf.js --steps ``` -Run tests in headless mode: - -``` -HEADLESS=true npx codeceptjs run -c codecept.webdriver.conf.js --steps -``` - -Run tests in parallel with 3 workers (headless mode): - -``` -HEADLESS=true npx codeceptjs run-workers 3 -c codecept.webdriver.conf.js -``` - ## TestCafe Use `codecept.testcafe.conf.js` to run tests with TestCafe in Chrome: @@ -89,16 +50,20 @@ Use `codecept.testcafe.conf.js` to run tests with TestCafe in Chrome: npx codeceptjs run -c codecept.testcafe.conf.js --steps ``` +## Headless Mpde + Run tests in headless mode: ``` -HEADLESS=true npx codeceptjs run -c codecept.testcafe.conf.js --steps +HEADLESS=true npx codeceptjs run --steps ``` -Run tests in parallel with 3 workers (headless mode): +## Parallel Execution + +Run tests in parallel with 3 workers: ``` -HEADLESS=true npx codeceptjs run-workers 3 -c codecept.testcafe.conf.js +npx codeceptjs run-workers 3 ``` ## Credits