Skip to content

kevshine/Java-Cucumber-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cucumber-Java Sample

This is a simple build script setup for Cucumber using Java. There is nothing fancy like a webapp or browser testing. All this does is to show you how to install and run a basic Cucumber test! The purpose is to demonstrate how BDD can be used to test features by defining the outcomes before we write the code.

This example is a single feature file with one scenario. The scenario has three steps, a given, a when and a then.

Get the code

Git:

git clone https://github.com/kevshine/Java-Cucumber-Sample.git
cd Java-Cucumber-Sample

Use Maven

Open a command window and run:

mvn test

This runs Cucumber feature using Cucumber's JUnit runner.

About

Sample of how to use Cucumber for a simple feature

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published