You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-46Lines changed: 11 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,17 @@ Tests can be executed via different helpers.
5
5
6
6
# Installation
7
7
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:
12
9
13
10
```
14
-
npm i
11
+
git clone git@github.com:codecept-js/examples.git codeceptjs-examples && cd codeceptjs-examples && npm install
15
12
```
16
13
17
14
This will install codeceptjs with puppeteer, webdriverio & testcafe packages.
18
15
19
16
# Running Tests
20
17
21
-
Default helper is Playwright.
18
+
The default helper is Playwright.
22
19
23
20
## Playwright
24
21
@@ -28,38 +25,14 @@ Use `codecept.conf.js` to run tests with Playwright:
28
25
npx codeceptjs run --steps
29
26
```
30
27
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
-
44
28
## Puppeteer
45
29
46
30
Use `codecept.puppeteer.conf.js` to run tests with Puppeteer:
47
31
48
32
```
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
56
34
```
57
35
58
-
Run tests in parallel with 3 workers (headless mode):
0 commit comments