Skip to content

Tutorial on how to test an app by using Cucumber for Java and Cucumber-Jutils

Notifications You must be signed in to change notification settings

fslev/cucumber-jutils-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status Allure test reports

Cucumber JUtils showcase

A simple showcase on how to use cucumber-jutils library while testing a notebook manager web application.

Requirements

JDK11, Maven, Docker & docker-compose

Setup

Start notebook-manager app:

src/test/resources/docker

docker-compose up

Notebook manager Swagger:
http://localhost:8090/swagger-ui.html

Configure Cucumber tests from Intellij Idea

Requirements

Cucumber for Java plugin configuration

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

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

img.png

About

Tutorial on how to test an app by using Cucumber for Java and Cucumber-Jutils

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published