All Projects â†’ brainhubeu â†’ cucumber-steps

brainhubeu / cucumber-steps

Licence: MIT license
🥒 Quick start for testing with Cucumber.js

Programming Languages

javascript
184084 projects - #8 most used programming language
Gherkin
971 projects

Projects that are alternatives of or similar to cucumber-steps

react-testing-mocha-chai-enzyme
A solid test setup for React components with Mocha, Chai, Sinon, Enzyme in a Webpack/Babel application.
Stars: ✭ 48 (+220%)
Mutual labels:  mocha, chai, sinon
js-stack-from-scratch
🌺 Russian translation of "JavaScript Stack from Scratch" from the React-Theming developers https://github.com/sm-react/react-theming
Stars: ✭ 394 (+2526.67%)
Mutual labels:  mocha, chai, sinon
bat
Gherkin based DSL for testing HTTP APIs via Cucumber.JS
Stars: ✭ 30 (+100%)
Mutual labels:  cucumber, testing-tools, cucumber-js
BotBlock.org
BotBlock - The List of Discord Bot Lists and Services
Stars: ✭ 29 (+93.33%)
Mutual labels:  mocha, chai
mocha-cakes-2
A BDD plugin for Mocha testing framework
Stars: ✭ 44 (+193.33%)
Mutual labels:  mocha, cucumber
aria-vue
Testing tools for Vue components
Stars: ✭ 21 (+40%)
Mutual labels:  mocha, chai
license-key-gen
Generate license keys for given company details
Stars: ✭ 48 (+220%)
Mutual labels:  mocha, chai
javascript-unit-testing-with-mocha
Unit test using Mocha and Chai
Stars: ✭ 104 (+593.33%)
Mutual labels:  mocha, chai
cucumber-watir
Test harness for automated functional testing of web applications
Stars: ✭ 17 (+13.33%)
Mutual labels:  cucumber, cucumberjs
earl
☕ Ergonomic, modern and type-safe assertion library for TypeScript
Stars: ✭ 217 (+1346.67%)
Mutual labels:  mocha, chai
react-redux-immutable-webpack-ssr-starter
React + React-Router 4 + Redux + ImmutableJS + Bootstrap + webpack 3 with with Server side rendering, Hot Reload and redux-devtools STARTER
Stars: ✭ 21 (+40%)
Mutual labels:  mocha, chai
qa-automation-base
There are basic projects for automation frameworks based on Kotlin/Java and TypeScript for the backend, frontend, and mobile.
Stars: ✭ 45 (+200%)
Mutual labels:  mocha, chai
karate
Test Automation Made Simple
Stars: ✭ 6,384 (+42460%)
Mutual labels:  cucumber, testing-tools
api-skel
Webpack + Typescript + Express + Jest + Chai + Gulp
Stars: ✭ 18 (+20%)
Mutual labels:  mocha, chai
alexa-skill-boilerplate
An easy to use Amazon Alexa Skill Boilerplate for fast skill creation
Stars: ✭ 54 (+260%)
Mutual labels:  mocha, chai
template-server-nodejs
No description or website provided.
Stars: ✭ 20 (+33.33%)
Mutual labels:  mocha, chai
nodejs-integration-testing
Integration testing of a Node.js / Express.js / Sequelize app
Stars: ✭ 23 (+53.33%)
Mutual labels:  mocha, chai
patent-free-react-ecosystem-migration-plan
Patent Free React Ecosystem Migration Plan
Stars: ✭ 15 (+0%)
Mutual labels:  mocha, chai
playwright-test
Run unit tests with several runners or benchmark inside real browsers with playwright.
Stars: ✭ 81 (+440%)
Mutual labels:  mocha, testing-tools
minimal-hapi-react-webpack
Minimal Hapi + React + Webpack + HMR (hot module reloading) Sandbox
Stars: ✭ 55 (+266.67%)
Mutual labels:  mocha, chai

cucumber-steps

Quick start for testing with cucumber

Hire us

CircleCI Last commit license PRs Welcome Renovate enabled

Downloads Activity Minified npm Contributors

Getting started

Install library

with npm: npm i --save-dev @brainhubeu/cucumber-steps

or with yarn: yarn add --dev @brainhubeu/cucumber-steps

Add following in anywhere in your step-definitions directory

import { defineSupportCode } from 'cucumber';
import stepsSupport from '@brainhubeu/cucumber-steps';

defineSupportCode(stepsSupport);

Available steps

Setting headers

Given I set header "heder-name" with value "header-value"

Sending request

When I send a "METHOD" request to "/path"

Sending request with body

When I send a "METHOD" request to "/path" with body:
  """
  {
    "name": "Wonderful coffee",
    "project": {
      "name": "Coffee"
    }
  }
  """

Chcking response code

Then the response code should be 111

Checking response body

Then the JSON should match pattern
  """
  {
    "name": "Wonderful coffee",
    "project": {
      "name": "Coffee"
    }
  }
  """
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].