This sample application is intended to show the acceptance testing
approach using Cucumber and Junit5.
Junit5
integration.- Separate acceptanceTest
test set
. Cucumber
integration.- Custom Cucumber hook for
@Transactional
rollback. Cluecumber Report plugin
integration for beautiful html reports.
- Java 11
-
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.
Distributed under the MIT License. See LICENSE
for more information.