From a63afa0fe8143c3ca95f1b77f4a347d440eb7ab1 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 15 Jul 2020 15:06:50 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 57 +++++++++++-------------------------------------------- 1 file changed, 11 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 56b351e..bbe6a48 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 codeceptjs-examples && cd codeceptjs-examples && npm i ``` 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 From 21cd92c2b540567205d540e574d8ee6c0ec20a88 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 15 Jul 2020 15:08:13 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbe6a48..9981e27 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Tests can be executed via different helpers. 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: ``` -git clone codeceptjs-examples && cd codeceptjs-examples && 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.