🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

codeceptjs-cucumber

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs-cucumber

CodeceptJs Cucumber

1.0.1
Version published
Weekly downloads
6.5K
4.17%
Maintainers
1
Weekly downloads
 
Created

codeceptjs-cucumber

[CodeceptJS][1] E2E framework with Cucumber and Saucelabs

About

This framework contains Gherkin BDD Tests with CodeceptJS & uses Should.JS assertion library. Intgrated with Saucelabs to run on Multibrowsers in Parallel

Co-locate CodeceptJS to your existing project

Follow this Easy 3-Steps process to co-locate and quik start with CodeceptJS-Cucumber tests

Usage

Prefer installing yarn

    git clone git@github.com:gkushang/codeceptjs-e2e.git
    npx lerna bootstrap
    cd codeceptjs-e2e/packages/codeceptjs-cucumber
    yarn

Run Acceptance Tests

Run all tests serially

Default browser is chrome

    yarn acceptance

To run on firefox

    yarn acceptance --profile firefox

To run on chrome:headless browser

    yarn acceptance --profile chrome:headless

Run all tests parallel

    yarn acceptance:parallel

Launch HTML Report

    yarn acceptance:report

Saucelabs: Single or Multibrowsers in Parallel

Important: Make sure to export your Sauce Username and Sauce Access Key as env variables

    export SAUCE_USERNAME=<sauce_username>
    export SAUCE_KEY=<sauce_key>

Run on Single browser on Saucelabs

  • command: yarn acceptance
  • param: --profile sauce:<sauce_browser>
  • available browsers: chrome, ie, edge, safari, firefox
    yarn acceptance --grep @search_results --profile sauce:chrome

Run Parallel on Multibrowsers on Saucelabs

  • command: yarn acceptance:multibrowsers
  • param: --profile sauce:<first_sauce_browser>,<second_sauce_browser>,<and_so_on>
  • available browsers: chrome, ie, edge, safari, firefox
    yarn acceptance:multibrowsers --grep @search_results --profile sauce:chrome,ie

Debug

To print debug messages, pass the DEBUG param

    DEBUG=acceptance* yarn acceptance --grep @search_results

FAQs

Package last updated on 11 Jun 2019

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