|Eugen Wissner ce48d31769|
This repository demonstrates features of Cucumber.js. Each directory contains an independent npm-package with an example.
The packages have standard directory structure:
- Features are in the
feature/directory and have
Running the tests
- Go to a directory
- Install npm dependencies:
- Run the tests:
When data tables are used, Cucumber.js provides different views of the data. This directory contains one feature with four scenarios, each of which uses a different way to read the given table. These tests cover all possibilities to access the data in a data table.
See Data tables.
Shows how to use promises and
await when testing asynchronous code.
Defining steps in TypeScript.
Defines custom parameter types.
Suggests a way to reuse step definitions.
Uses non-default output formatter. See package.json.
- Custom formatters: https://github.com/cucumber/cucumber-js/blob/master/docs/custom_formatters.md
- Built-in formatters: https://github.com/cucumber/cucumber-js/tree/master/src/formatter.
This package contains some failing tests demonstrating object diffs provided by node's native asserts, chai and jest.