Всем привет!
Проект: gradle, junit5, cucumber, selenide.
Пытаюсь прикрутить Allure 2 к проекту, все делаю согласно доке Allure Framework, почему-то при формировании отчета не подтягиваются шаги из feature сценариев
build.gradle:
plugins {
id "io.qameta.allure" version "2.8.1"
id 'java'
}
def allureVersion = '2.13.3'
def cucumberVersion = '5.7.0'
repositories {
mavenCentral()
jcenter()
}
allure {
version = allureVersion
autoconfigure = true
useJUnit5 {
version = allureVersion
}
}
group 'ru.autotests'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
tasks.withType(JavaCompile) {
options.with {
encoding = 'UTF-8'
}
}
task cucumber() {
dependsOn assemble, testClasses
doLast {
javaexec {
main = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'pretty', \
'--plugin', 'io.qameta.allure.cucumber5jvm.AllureCucumber5Jvm', \
'--glue', 'autotests']
}
}
}
dependencies {
testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.6.2',
'io.cucumber:cucumber-java:5.7.0'
)
testRuntimeOnly(
'org.junit.jupiter:junit-jupiter-engine:5.6.2'
)
compile group: 'com.codeborne', name: 'selenide', version: '5.13.0'
compile group: 'io.qameta.allure', name: 'allure-cucumber5-jvm', version: allureVersion
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.3'
testCompile group: 'org.junit.vintage', name: 'junit-vintage-engine', version: '5.6.2'
testCompile group: 'io.qameta.allure', name: 'allure-junit5', version: allureVersion
testCompile group: 'io.cucumber', name: 'cucumber-junit', version: cucumberVersion
testCompile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.13.3'
}
test {
useJUnitPlatform()
}
Не могу сообразить, что я упускаю.