Skip to content

Commit bf327ab

Browse files
authored
Patch 3 (#7)
* Update README.md * Update README.md
1 parent 8452859 commit bf327ab

File tree

1 file changed

+11
-46
lines changed

1 file changed

+11
-46
lines changed

README.md

+11-46
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@ Tests can be executed via different helpers.
55

66
# Installation
77

8-
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.
9-
10-
1. Clone this repository.
11-
2. Install dependencies:
8+
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:
129

1310
```
14-
npm i
11+
git clone [email protected]:codecept-js/examples.git codeceptjs-examples && cd codeceptjs-examples && npm install
1512
```
1613

1714
This will install codeceptjs with puppeteer, webdriverio & testcafe packages.
1815

1916
# Running Tests
2017

21-
Default helper is Playwright.
18+
The default helper is Playwright.
2219

2320
## Playwright
2421

@@ -28,38 +25,14 @@ Use `codecept.conf.js` to run tests with Playwright:
2825
npx codeceptjs run --steps
2926
```
3027

31-
Run tests in headless mode:
32-
33-
```
34-
HEADLESS=true npx codeceptjs run --steps
35-
```
36-
37-
Run tests in parallel with 3 workers (headless mode):
38-
39-
```
40-
HEADLESS=true npx codeceptjs run-workers 3
41-
```
42-
43-
4428
## Puppeteer
4529

4630
Use `codecept.puppeteer.conf.js` to run tests with Puppeteer:
4731

4832
```
49-
npx codeceptjs run --steps -c codecept.webdriver.conf.js
50-
```
51-
52-
Run tests in headless mode:
53-
54-
```
55-
HEADLESS=true npx codeceptjs run --steps -c codecept.webdriver.conf.js
33+
npx codeceptjs run --steps -c codecept.puppeteer.conf.js
5634
```
5735

58-
Run tests in parallel with 3 workers (headless mode):
59-
60-
```
61-
HEADLESS=true npx codeceptjs run-workers 3 -c codecept.webdriver.conf.js
62-
```
6336

6437
## WebDriver
6538

@@ -69,18 +42,6 @@ Use `codecept.webdriver.conf.js` to run tests with WebDriver in Chrome:
6942
npx codeceptjs run -c codecept.webdriver.conf.js --steps
7043
```
7144

72-
Run tests in headless mode:
73-
74-
```
75-
HEADLESS=true npx codeceptjs run -c codecept.webdriver.conf.js --steps
76-
```
77-
78-
Run tests in parallel with 3 workers (headless mode):
79-
80-
```
81-
HEADLESS=true npx codeceptjs run-workers 3 -c codecept.webdriver.conf.js
82-
```
83-
8445
## TestCafe
8546

8647
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:
8950
npx codeceptjs run -c codecept.testcafe.conf.js --steps
9051
```
9152

53+
## Headless Mpde
54+
9255
Run tests in headless mode:
9356

9457
```
95-
HEADLESS=true npx codeceptjs run -c codecept.testcafe.conf.js --steps
58+
HEADLESS=true npx codeceptjs run --steps
9659
```
9760

98-
Run tests in parallel with 3 workers (headless mode):
61+
## Parallel Execution
62+
63+
Run tests in parallel with 3 workers:
9964

10065
```
101-
HEADLESS=true npx codeceptjs run-workers 3 -c codecept.testcafe.conf.js
66+
npx codeceptjs run-workers 3
10267
```
10368

10469
## Credits

0 commit comments

Comments
 (0)