Skip to content

Example project showing you how to use Cucumber with the Hotel Booking app to create living documentation.

Notifications You must be signed in to change notification settings

hindsightsoftware/hotel-booking-python-behave-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hotel Booking Cucumber Python example

CircleCI

Usage

First, run the Hotel Booking app. The easiest way is to do it via Docker as shown below. This will start the app that can be accessed at http://localhost:8080

docker run --rm -p 8080:8080 --name=hotel-booking -itd hindsightsoftware/hotel-booking:latest

Next, run the Cucumber Python tests. The report will be generated as a JSON file in reports/cucumber.json.

python3 -m pip install -r requirements.txt
python3 -m behave -f json.pretty -o reports/cucumber.json

About

Example project showing you how to use Cucumber with the Hotel Booking app to create living documentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published