Skip to content

A human readable testing framework for web interfaces

Notifications You must be signed in to change notification settings

0xemc/cypress-cucumber-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress Cucumber Lang Logo

Documentation | Changelog

A human readable testing language for web interfaces

What is Cypress Cucumber Lang?

A set of pre-defined cucumber steps and network interaction utilities to allow you to quickly write human readable tests for your app.

Feature: Some Feature

    Background:
        Given the 'https://my-app.com' url is loaded

    Scenario: Search for Chuck Norris
        When the user clicks the textbox element with text 'Name'
        And the user types 'Chuck Norris'
        And the user clicks the button element with text 'Search'
        Then a '@search' request has been sent with input:
            """
              {
                "query": "Chuck Norris"
              }
            """"

Installing

npm version

Install Cypress for Mac, Linux, or Windows, then get started.

npm install cypress-cucumber-lang --save-dev

or

yarn add cypress-cucumber-lang --dev

Setup

Call the init() function inside to e2e.ts

import { init } from "cypress-cucumber-lang";

init();

Modify your existing .cypress-cucumber-preprocessorrc file in the root folder of your project to include the following:

{
  "stepDefinitions": [
    ...
    "node_modules/cypress-cucumber-lang/dist/steps/**/*.{js,ts}"
  ]
}

License

license

This project is licensed under the terms of the MIT license.

About

A human readable testing framework for web interfaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published