Demo of a simple REST service that is secured by Cucumber tests.
As an example the Cucumber test specifications are both provided in English and German,
see src/test/resources/features/*.feature
.
Run the REST service by:
./gradlew bootRun
Inspect the REST API or the utilized H2 in-memory database by:
- Swagger UI at http://localhost:8080/swagger-ui/index.html
- H2 database console at http://localhost:8080/h2/ (*)
(*) apply the JDBC URL "jdbc:h2:mem:test"
for the H2 database console.
Initiate the Cucumber test from a second terminal window as the Cucumber tests requires a running instance of the REST service.
./gradlew cucumberTest
See the generated Cucumber HTML report at build/reports/cucumber.html
.
Credits to the GitHub project cucumber-spring-boot-kotlin by Ray Wenderlich.
Dirk Duehr, July 2024