🚀 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 E2E Framework

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

Codeceptjs-Cucumber

CodeceptJS BDD framework with Cucumber and Saucelabs

npm License

About

This is the BDD 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!

FAQs

Package last updated on 23 Jan 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