/cucumber-demo

Primary LanguageJavaScript

Cucumber Demo Project

VSCode Extensions

You can choose between scenario and scenario outline. Use scenario outline for more generic test case.

<day> is a variable in cucumber.

Cucumber Scenario

Feature: Is it Friday yet?
    Everybody wants to know when it's Friday

    Scenario: Monday isn't Friday
        Given today is Monday
        When I ask whether it's Friday yet
        Then I should be told "Nope"


    Scenario: Friday is Friday
        Given today is Friday
        When I ask whether it's Friday yet
        Then I should be told "TGIF"

Cucumber Scenario Outline

is_it_friday.feature

Source