https://github.com/fslev/cucumber-jutils-tutorial
Tutorial on how to test an app by using Cucumber for Java and Cucumber-Jutils
https://github.com/fslev/cucumber-jutils-tutorial
Last synced: about 1 year ago
JSON representation
Tutorial on how to test an app by using Cucumber for Java and Cucumber-Jutils
- Host: GitHub
- URL: https://github.com/fslev/cucumber-jutils-tutorial
- Owner: fslev
- Created: 2019-05-21T09:24:56.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T15:09:38.000Z (about 1 year ago)
- Last Synced: 2025-04-23T15:14:41.415Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 13.1 MB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
[](https://github.com/fslev/cucumber-jutils-tutorial/actions/workflows/build.yml)
[](https://fslev.github.io/cucumber-jutils-tutorial)
# Cucumber JUtils showcase
A simple showcase on how to use [**cucumber-jutils**](https://github.com/fslev/cucumber-jutils) library while testing a notebook manager web application.
## Requirements
JDK11, Maven, Docker & docker-compose
## Setup
_Start notebook-manager app:_
```shell
src/test/resources/docker
docker-compose up
```
Notebook manager Swagger:
http://localhost:8090/swagger-ui.html
## Configure Cucumber tests from Intellij Idea
### Requirements
- __Intellij Idea__ version >= 2019.3
- Latest version of [Cucumber for Java](https://plugins.jetbrains.com/plugin/7212-cucumber-for-java) and [Gherkin](https://plugins.jetbrains.com/plugin/9164-gherkin) plugins
### Cucumber for Java plugin configuration
[Cucumber for Java](https://plugins.jetbrains.com/plugin/7212-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`
## Execution and Reports
### Run tests from Idea
_src/test/resources/features:_
```
Right click any feature file or inside any feature file -> Run feature / Run scenario
```
### Run tests from Maven
```shell
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
