diff --git a/code-samples/05-bdd/README.md b/code-samples/05-bdd/README.md index bf039ce..063c854 100644 --- a/code-samples/05-bdd/README.md +++ b/code-samples/05-bdd/README.md @@ -2,10 +2,37 @@ ## For existing tdd-kata +### Create appropriate dir structure within `tdd-kata` + ```bash mkdir -p src/test/java/com/algogrit/java src/test/resources/com/algogrit/java ``` +### Edit pom.xml and add the following under existing `dependencies` & `properties` appropriately + +```xml + + 4.2.6 + UTF-8 + + + + + io.cucumber + cucumber-java + ${cucumber.version} + test + + + + io.cucumber + cucumber-junit + ${cucumber.version} + test + + +``` + ### Create the following files > $ cat src/test/java/com/algogrit/java/RunCucumberTest.java @@ -39,27 +66,9 @@ public class Stepdefs { } ``` -### Edit pom.xml and add the following `dependencies` & `properties` - -```xml - - 4.2.6 - UTF-8 - +### Create your first feature in `calculator.feature` - - - io.cucumber - cucumber-java - ${cucumber.version} - test - - - - io.cucumber - cucumber-junit - ${cucumber.version} - test - - +```bash +touch src/test/resources/com/algogrit/java/calculator.feature +mvn clean test ```