Module: JUnit 5
Available since 1.5.0
JUnit 5 module allows to run test using JUnit 5 platform It also allow to generate allure reports which is included in this module
-
Add dependency to your
build.gradle
file:compile group: 'com.cognifide.qa.bb', name: 'bb-junit5', version: '<Bobcat Version>'
- Add JUnit platform to test task
test { useJUnitPlatform() systemProperties = System.getProperties() systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true' maxParallelForks = 3 }
-
Mark test methods with JUnit 5 test annotation
This module uses Allure for reports. Full documentation can be found here