Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 3 #7

Merged
merged 2 commits into from
Jul 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 11 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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
Expand Down