Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.33 KB

File metadata and controls

51 lines (34 loc) · 1.33 KB

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.