Skip to content

michalvich/cucumber-java-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cucumber-example

This is a simple example how to use cucumber-jvm in Java.

```cucumber
Feature: Visitor buys tickets
  As an Visitor
  I want to buy tickets to a cinema
  So that I can go and watch a movie

  Scenario Outline: the cinema has sufficient seats
    Given the cinema has  seats
    When the visitor buys 
    Then the cinema should have  reserved seats
    And the cinema should have  free seats

  Examples:
    |number_of_seats|number_of_tickets|reserved_seats|free_seats|
    |100            |10               |10            |90        |
    |100            |100              |100           |0         |
    |50             |2                |2             |48        |
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages