Skip to content

This sample application is intended to show the acceptance testing approach using Cucumber and Junit5.

License

Notifications You must be signed in to change notification settings

rbiedrawa/spring-boot-acceptanceTests-cucumber-demo

Repository files navigation

Acceptance tests with Spring Boot, Cucumber and Junit5 (demo)

This sample application is intended to show the acceptance testing approach using Cucumber and Junit5.

acceptance-test-reports.png

Features

  • Junit5 integration.
  • Separate acceptanceTest test set.
  • Cucumber integration.
  • Custom Cucumber hook for @Transactional rollback.
  • Cluecumber Report plugin integration for beautiful html reports.

Getting Started

Prerequisites

  • Java 11

Usage

  • Run acceptance tests.

    ./gradlew acceptanceTest
  • Generate html reports.

    ./gradlew generateCluecumberReports

    *** report will be generated under: build/reports/acceptanceTest/index.html.

  • Run tests based on tag.

    ./gradlew acceptanceTest -Dcucumber.filter.tags="@Slow"
  • Use @Disabled to ignore cucumber test.

References

License

Distributed under the MIT License. See LICENSE for more information.

About

This sample application is intended to show the acceptance testing approach using Cucumber and Junit5.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published