jest-cucumber - Execute Gherkin scenarios in Jest

  •        1058

jest-cucumber is an alternative to Cucumber.js that runs on top on Jest. Instead of using describe and it blocks, you instead write a Jest test for each scenario, and then define Given, When, and Then step definitions inside of your Jest tests. jest-cucumber then allows you to link these Jest tests to your feature files and ensure that they always stay in sync. Jest is an excellent test runner with great features like parallel test execution, mocking, snapshots, code coverage, etc. If you're using VS Code, there's also a terrific Jest extension that allows you get realtime feedback as you're writing your tests and easily debug failing tests individually. Cucumber is a popular tool for doing Acceptance Test-Driven Development and creating business-readable executable specifications. This library aims to achieve the best of both worlds, and even run your unit tests and acceptance tests in the same test runner.

https://github.com/bencompton/jest-cucumber#readme

Dependencies:

@types/jest : ^23.1.5
@types/node : ^10.5.2
gherkin : ^5.0.0
jest : ^23.3.0

Tags
Implementation
License
Platform

   




Related Projects

godog - Cucumber for golang

  •    Go

Please read the full README, you may find it very useful. And do not forget to peek into the Release Notes and the CHANGELOG from time to time. Package godog is the official Cucumber BDD framework for Golang, it merges specification and test documentation into one cohesive whole, using Gherkin formatted scenarios in the format of Given, When, Then.

godog - Cucumber for golang

  •    Go

Please read all the README, you may find it very useful. And do not forget to peek into the CHANGELOG from time to time.Package godog is the official Cucumber BDD framework for Golang, it merges specification and test documentation into one cohesive whole. The author is a core member of cucumber team.

cucumber-js - Cucumber for JavaScript

  •    Javascript

Cucumber is a tool for running automated tests written in plain language. Because they're written in plain language, they can be read by anyone on your team. Because they can be read by anyone, you can use them to help improve communication, collaboration and trust on your team. Cucumber.js is the JavaScript implementation of Cucumber and runs on both Node.js (4 and above) and modern web browsers.

jest-dom - :owl: Custom jest matchers to test the state of the DOM

  •    Javascript

You want to use jest to write tests that assert various things about the state of a DOM. As part of that goal, you want to avoid all the repetitive patterns that arise in doing so. Checking for an element's attributes, its text content, its css classes, you name it. The @testing-library/jest-dom library provides a set of custom jest matchers that you can use to extend jest. These will make your tests more declarative, clear to read and to maintain.

jest-playwright - Running tests using Jest & Playwright 🚀

  •    TypeScript

It's more flexible, lightweight, optimized for Playwright, and has TypeScript support out of the box. This doesn't mean, that we stop with maintaining this package. playwright actions can take some time for execution, because of it jest-playwright overrides jest default timeout interval from 5 to 15 seconds. You can change this interval with testTimeout in your jest configuration.


jest-image-snapshot - Jest matcher for image comparisons

  •    Javascript

Jest matcher that performs image comparisons using pixelmatch and behaves just like Jest snapshots do! Very useful for visual regression testing. The failure threshold can be set in percent, in this case if the difference is over 1%.

ts-jest - TypeScript preprocessor with sourcemap support for Jest

  •    TypeScript

ts-jest is a TypeScript preprocessor with source map support for Jest that lets you use Jest to test projects written in TypeScript. It supports all features of TypeScript including type-checking. Read more about Babel7 + preset-typescript vs TypeScript (and ts-jest).

vim-cucumber - Vim Cucumber runtime files

  •    VimL

This is the development version of Vim's included runtime files for the Ruby acceptance testing framework Cucumber. It provides syntax highlighting, indenting, and some editing commands. vim-cucumber provides commands to jump from steps to step definitions in feature files.

jest-puppeteer - Run your tests using Jest & Puppeteer 🎪✨

  •    Javascript

Gold Sponsors are those who have pledged $100/month and more to jest-puppeteer. Writing integration test can be done using Puppeteer API but it can be complicated and hard because API is not designed for testing.

jest-cheat-sheet - Jest cheat sheet

  •    

I recommend Mrm and jest-codemods for single-command Jest installation and easy migration from other frameworks. See more examples in Jest docs.

vue-jest - Jest Vue transformer

  •    Javascript

To define vue-jest as a transformer for your .vue files, you need to map .vue files to the vue-jest module. A full config will look like this.

majestic - ⚡ Zero config UI for Jest

  •    TypeScript

Majestic is an electron app that provides a UI for running tests with Jest. Jest CLI itself provides one of the best testing experiences available today. But Majestic humbly tries to expand upon it by providing a rich UI to be used during the dev/test loop.Ok, I lied partially about the zero config part.

jest-extended - Additional Jest matchers 🃏💪

  •    Javascript

Jest is an amazing test runner and has some awesome assertion APIs built in by default. However there are times when having more specific matchers (assertions) would be far more convenient. If you've come here to help contribute - Thanks! Take a look at the contributing docs as a way of getting started.

jest-styled-components - Jest utilities for Styled Components

  •    Javascript

A set of utilities for testing Styled Components with Jest. This package improves the snapshot testing experience and provides a brand new matcher to make expectations on the style rules. Jest snapshot testing is an excellent way to test React components (or any serializable value) and make sure things don't change unexpectedly. It works with Styled Components but there are a few problems that this package addresses and solves.

jest-in-case - Jest utility for creating variations of the same test

  •    Javascript

In your Jest tests, import cases from jest-in-case. Then you can call cases with a title, a tester, and some testCases.

jest-preset-angular - Jest configuration preset for Angular projects.

  •    TypeScript

A preset of Jest configuration for Angular projects. This is a part of the article: Testing Angular faster with Jest.

aruba - Test command-line applications with Cucumber-Ruby, RSpec or Minitest

  •    Ruby

This is the latest version of our README.md (Branch: "master"). There is also the README of the latest released version of "aruba" (Branch: "still"). Our most current documentation to get started with aruba as a user can be found on . It is generated from our feature files describing the use of aruba.

vscode-jest - The optimal flow for Jest based testing in VS Code

  •    TypeScript

A comprehensive experience when using Facebook's Jest within a project. Orta Therox (@orta), Sean Poulter (@seanpoulter), Vincent Voyer (@vvo) & ConnectDotz (@connectdotz).

spinach - Spinach is a BDD framework on top of Gherkin.

  •    Ruby

Spinach is a high-level BDD framework that leverages the expressive Gherkin language (used by Cucumber) to help you define executable specifications of your application or library's acceptance criteria. Step maintainability: since features map to their own classes, their steps are just methods of that class. This encourages step encapsulation.

Hardy - Selenium-driven, cucumber-powered CSS testing.

  •    Javascript

This is almost entirely working but not 100%. If you spot a problem, please file an issue. Hardy is a collection of CSS testing steps and a boilerplate testing setup to get you up-and-running with automated CSS testing as quickly as possible. Tests are written in Cucumber and use Selenium. Hardy runs on Node.js and therefore all the example CSS test helpers are written in JS. The functionality behind them can easily be reused in any test setup, whether your tests are written in Java, Ruby or anything else.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.