Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.4 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.4 KB

Template for Java with JUnit5, Cucumber7 and Allure

Getting started with a Project from scratch can sometimes use a little jump start. This template helps you getting started with setting up a project with Cucumber v7 in a JUnit5 - Jupiter Test-Framework. Combined with a nice Allure report in place to convince your management.

For a German Guide check this link: https://www.testautomatisierung.org/java-projekt-mit-junit5-cucumber7-und-allure/

What you get

This project has a single scenario described in the example.feature file. These sentences are linked by the cucumber test runner to the MyStepdefs.java file where the execution is implemented. The allure report is integrated with the configuration and you can start right off with writing new sentences to the scenario or start writing your own scenarios right away.

Prerequisites

You need :

How to start

Download or clone the repository. Open a console in the root of this repository, where the pom.xml files resides. Run:

mvn test

You should get a green message of "BUILD SUCCESS". Now run

allure generate --clean
allure open

The second command will launch a local web server and present the allure report in your default browser. Have fun organizing your Behavior Driven Testing.