A simple showcase on how to use cucumber-jutils library while testing a notebook manager web application.
JDK11, Maven, Docker & docker-compose
Start notebook-manager app:
src/test/resources/docker
docker-compose up
Notebook manager Swagger:
http://localhost:8090/swagger-ui.html
- Intellij Idea version >= 2019.3
- Latest version of Cucumber for Java and Gherkin plugins
Cucumber for Java plugin should by default read configuration from junit-platform.properties
Also, for newer versions of Idea (>=2022) you need the following plugin setup:
Run -> Edit configurations... -> Edit configuration templates -> Cucumber for Java -> Before launch -> Build project
src/test/resources/features:
Right click any feature file or inside any feature file -> Run feature / Run scenario
mvn clean -Plocal,allure-reports verify
Check for Cucumber Allure reports inside target/site/allure-maven-plugin/index.html
Or, directly inside GitHub pages by clicking on the Allure Test Reports badge or directly at
https://fslev.github.io/cucumber-jutils-tutorial