Giter Club home page Giter Club logo

testcafe-cucumber's Introduction

Integration of TestCafe and CucumberJS

This is a demonstration of integration TestCafé into CucumberJS tests using TestCafe and Cucumber.

Big thank you to helen-dikareva for your help in starting the integration with your repo. This is a fork of all of the hard work you've put in.

Also, thanks to the team at TestCafé for allowing testers to break away from Selenium.

Depreciation Notice - There are talks to officially support the Gherkin syntax in TestCafé. Once those changes are in place I will no longer support this repo. Please voice your support of these changes becoming native to TestCafé.

Versions

TestCafé 1.1.0
CucumberJS 5.1.0

Installation

  1. Make sure Node.js is installed
  2. Navigate to the root of the repo
  3. Use the npm install command

Running tests

Windows

You can run tests by executing the .\node_modules\.bin\cucumber-js.cmd or npm test commands in command prompt

Mac or Linux

You can run tests by executing node_modules/cucumber/bin/cucumber-js

Documentation

Notes

  • As of the time I am writting this, there is only 1 passing test of 3. I decided to not make all of the tests passing, so you could see how failures are handled.

  • My solution closes the TestCafé browser between each scenario. I tried to keep it open between scenarios but had trouble with handling failures. If you find a solution, I'd like to know.

  • With TestCafé version 0.19.0, you no longer have to manually update stack-chain. Thank you to the TestCafé crew for making the integration much easier.

Contributors

Thanks to everyone who has contributed to this project over the last few years.

cmasekar benkirbyten10 vvedachalam azzra

testcafe-cucumber's People

Contributors

rquellh avatar cmasekar avatar benkirby-ten10 avatar vvedachalam avatar azzra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.