Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codeceptjs/examples

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codeceptjs/examples

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

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.9K
decreased by-9.74%
Maintainers
2
Weekly downloads
 
Created
Source

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

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

Running Tests

Default helper is Playwright.

Playwright

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 

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

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

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

FAQs

Package last updated on 07 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc