This documentation is part of this blog post.
Install the following software in your development environment:
- Java JDK
- Maven
- Git (Optional)
This example uses JBehave and Java, and the project is built using Maven.
This example is based on the Password Validator Kata blog. Go ahead and clone or simply download the project from Github.
git clone https://github.com/donaldsiziba/password-validator
After getting the project on your local environment, go ahead and build the project by executing the command below in projects root directory:
mvn install
└── src
├── main
│ ├── java
│ │ └── za
│ │ └── co
│ │ └── awesomatic
│ └── resources
└── test
├── java
│ └── za
│ └── co
│ └── awesomatic
│ └── authentication
│ └── AuthenticationApplicationTestSuite.java # Acceptance Test Runner
└── resources
└── stories # Story files folder
└── ValidatePassword.story
To run the Acceptance Test Suite, type the following in command line on the project's root directory:
mvn verify
Note: Use mvn clean verify for subsequent builds.
After the build has run, the Acceptance Test reports can be found in target/site/serenity. Use a browser to view the index.html file.
The test results below indicates that all test scenarios are still pending as no code has been implemented yet.