All Projects → hdorgeval → cucumber6-ts-starter

hdorgeval / cucumber6-ts-starter

Licence: other
Starter project to write and debug cucumber-js features in TypeScript language

Programming Languages

typescript
32286 projects
Gherkin
971 projects

Projects that are alternatives of or similar to cucumber6-ts-starter

bat
Gherkin based DSL for testing HTTP APIs via Cucumber.JS
Stars: ✭ 30 (-51.61%)
Mutual labels:  bdd, gherkin, cucumber, cucumber-js
Awesome-Cucumber
A collection of awesome Cucumber and Gherkin-related resources
Stars: ✭ 33 (-46.77%)
Mutual labels:  bdd, gherkin, cucumber
scenari
Clojure BDD library - Executable Specification with Behavior-Driven Development
Stars: ✭ 57 (-8.06%)
Mutual labels:  bdd, gherkin, cucumber
White Bread
🍞 Story BDD tool for elixir using gherkin
Stars: ✭ 198 (+219.35%)
Mutual labels:  bdd, gherkin, cucumber
Gunit
GUnit - Google.Test/Google.Mock/Cucumber on steroids
Stars: ✭ 156 (+151.61%)
Mutual labels:  bdd, gherkin, cucumber
cucumber-performance
A performance testing framework for cucumber
Stars: ✭ 28 (-54.84%)
Mutual labels:  bdd, gherkin, cucumber
gavel-spec
Behavior specification for Gavel, validator of HTTP transactions
Stars: ✭ 105 (+69.35%)
Mutual labels:  bdd, gherkin, cucumber
mocha-cakes-2
A BDD plugin for Mocha testing framework
Stars: ✭ 44 (-29.03%)
Mutual labels:  bdd, gherkin, cucumber
Karate
Test Automation Made Simple
Stars: ✭ 5,497 (+8766.13%)
Mutual labels:  bdd, gherkin, cucumber
Behat
BDD in PHP
Stars: ✭ 3,696 (+5861.29%)
Mutual labels:  bdd, gherkin, cucumber
Radish
Behavior Driven Development tooling for Python. The root from red to green.
Stars: ✭ 153 (+146.77%)
Mutual labels:  bdd, gherkin, cucumber
docs
Cucumber user documentation
Stars: ✭ 110 (+77.42%)
Mutual labels:  bdd, gherkin, cucumber
karate-runner
VSCode Extension for Karate
Stars: ✭ 23 (-62.9%)
Mutual labels:  bdd, gherkin, cucumber
gherkin
Pure Rust implementation of Gherkin language (`.feature` file) for Cucumber testing framework.
Stars: ✭ 41 (-33.87%)
Mutual labels:  bdd, gherkin, cucumber
Godog
Cucumber for golang
Stars: ✭ 1,287 (+1975.81%)
Mutual labels:  bdd, gherkin, cucumber
Nightwatch Cucumber
[DEPRECATED] Cucumber.js plugin for Nightwatch.js.
Stars: ✭ 243 (+291.94%)
Mutual labels:  bdd, gherkin, cucumber
Bicing Api
Get statistics and locations of bicycle stations through REST API
Stars: ✭ 149 (+140.32%)
Mutual labels:  bdd, gherkin
Howitzer
Ruby-based framework for acceptance testing
Stars: ✭ 179 (+188.71%)
Mutual labels:  bdd, cucumber
Owasp Cloud Security
OWASP Cloud Security - Enabling conversations through threat and control stories
Stars: ✭ 148 (+138.71%)
Mutual labels:  bdd, gherkin
Xcfit
Full Stack Protocol Oriented BDD in Xcode for iOS app with Swift using XCUITest, Cucumberish and FitNesse
Stars: ✭ 170 (+174.19%)
Mutual labels:  bdd, cucumber

cucumber-ts-starter

Build Status Build status

Starter project to write and debug cucumber-js v6 features in TypeScript language.

!!! this template is intended to work with cucumber-js v6 only. For cucumber-js v7 this template has been migrated in cucumber7-ts-starter !!!

After cloning the repo

  • run the command npm install.

To execute the tests locally

  • run the command npm test.

To debug a scenario in Visual Studio Code

  • tag the scenario with @debug
  • set the breakpoints in the typescript code
  • Start debugging

To run only specific scenarios

  • tag the scenario(s) with @only
  • run the command npm run only.

To ignore a scenario

  • tag the scenario with @ignore

To check for typescript, linting and gherkin errors

  • run the command npm run build.

To view the html report of the last run

  • run the command npm run report.

To view the steps usage

  • run the command npm run steps-usage.

To create a new step

  • first write the Given/When/Then sentence:

    Given I push "foo" on "bar"
  • tag the scenario with @only

  • run the npm script:

    npm run snippets
  • the script will report the missing step(s): you just need to copy and paste them in the step definitions file:

    Given('I push {string} on {string}', async function (string, string2) {
      // Write code here that turns the phrase above into concrete actions
      return 'pending';
    });

To use a custom option on the CLI

  • add your custom option to the CLI that starts cucumber:
./node_modules/.bin/cucumber-js features/**/*.feature --foo=bar 
  • use it at runtime:
if (this.cliArgs.foo === 'bar') {
  // custom code for option --foo=bar
}

To use a custom World Objet

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].