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

codeceptjs-cucumber

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs-cucumber

CodeceptJs Cucumber E2E Framework

2.0.13
Source
npm
Version published
Weekly downloads
5.2K
-13.95%
Maintainers
1
Weekly downloads
 
Created
Source

Codeceptjs-Cucumber

CodeceptJS E2E framework with Cucumber and Saucelabs

npm License

About

This is the E2E framework with CodeceptJS and Cucumber. Integrates with Sauce Labs, uses Should.js assertion library. Runs cross-browsers tests in Parallel on SauceLabs.

Run

Run all tests:

    yarn acceptance

Run one test:

    yarn acceptance --grep @tag

Run test on firefox:

Default browser is chrome

    yarn acceptance --grep @tag --profile firefox

Soft Assertions

Collect all errors with Soft Assertions!

Soft Assert collects errors during scenario. Soft Assert does not throw an exception when an assert fails and would continue with the next step after the assert statement. If there is any exception and you want to throw it then you need to use softAssertAll() method as a last statement in the scenario or with @after hook and it will report all the failures at once.

The detailed example is in Github Sample Search Tests.

const verify = require('soft-assert');

// in test
verify.softAssert('actual-1', 'expected-1', 'message');
verify.softAssert('actual-2', 'expected-2', 'message');

// at any point throw all errors at once
verify.softAssertAll();

For more info, follow the soft-assert library!

Keywords

Cucumber

FAQs

Package last updated on 30 Dec 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