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.
Git:
git clone https://github.com/kevshine/Java-Cucumber-Sample.git
cd Java-Cucumber-Sample
Open a command window and run:
mvn test
This runs Cucumber feature using Cucumber's JUnit runner.