Skip to content

pablopaul/examples

 
 

Repository files navigation

This repo contains tests for TodoMVC application. Tests can be executed via different backends.

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 ALL dependencies:
npm i

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

Running Tests

Puppeteer

Use codecept.conf.js to run tests with Puppeteer:

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 

WebDriver

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:

npx codeceptjs run -c codecept.testcafe.conf.js --steps 

Run tests in headless mode:

HEADLESS=true npx codeceptjs run -c codecept.testcafe.conf.js --steps 

Run tests in parallel with 3 workers (headless mode):

HEADLESS=true npx codeceptjs run-workers 3 -c codecept.testcafe.conf.js

Credits

Created as part of codepress by Stefan Huber. Maintained by CodeceptJS Team.

LICENSE

MIT

About

Todo Examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.5%
  • Gherkin 2.5%