除了我使用gradle代替maven之外,我遇到了与本question中概述的问题完全相同的问题。
概述的问题中的解决方案是添加aspectjweaver依赖项,但是,我没有使用带有gradle的surefire插件,因此该解决方案将不起作用。 还有我缺少的依赖吗?
我的build.gradle看起来像这样:
plugins {
id "java-library"
id "io.qameta.allure" version "2.8.1"
id "com.github.ben-manes.versions" version "0.27.0"
}
group "com.github.rosolko"
version "1.0.0"
sourceCompatibility = 1.8
allure {
version = "2.12.0"
downloadLinkFormat = "https://dl.bintray.com/qameta/maven/io/qameta/allure/allure-commandline/%s/allure-commandline-%<s.zip"
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.squareup.retrofit2:converter-gson:2.6.2")
implementation("io.qameta.allure:allure-okhttp3:2.13.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.5.2")
testImplementation("com.codeborne:selenide:5.5.0")
testImplementation("io.qameta.allure:allure-selenide:2.13.0")
testImplementation("io.undertow:undertow-core:2.0.27.Final")
testRuntimeOnly("io.qameta.allure:allure-junit5:2.13.0")
testRuntimeOnly("org.slf4j:slf4j-simple:1.7.29")
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging.showStandardStreams = true
maxParallelForks = (int) (Runtime.runtime.availableProcessors().intdiv(2) ?: 1)
}
wrapper.gradleVersion = "5.6"
报告的其余部分运行良好,因此我想有一个足够简单的修复程序,但我无法弄清楚需要做什么