Slackbot
02/23/2022, 4:21 PMLouis Jacomet
02/23/2022, 5:19 PMannotationProcessor
is not understood inside the test suite block. See https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/jvm/JvmComponentDependencies.html.Thomas Broyer
02/23/2022, 5:32 PMsmokeTestAnnotationProcessor("…")
in the global dependencies {}
block.Sterling
Sterling
Tom Tresansky
02/23/2022, 6:01 PMannotationProcessor
support to TestSuites on my list. Hopefully not a big change that can be done in the next version.Sukhbir Singh
02/23/2022, 6:09 PMCould not find method smokeTestAnnotationProcessor() for arguments [org.projectlombok:lombok:1.18.22] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Thomas Broyer
02/23/2022, 6:16 PMsmokeTest
suite. Also if using the Kotlin DSL you'll probably have to use "smokeTestAnnotationProcessor"("…")
or add("smokeTestAnnotationProcessor", "…")
.Sukhbir Singh
02/23/2022, 6:27 PMSukhbir Singh
02/23/2022, 6:33 PMtesting {
suites {
test {
useJUnitJupiter()
systemProperty("junit.jupiter.execution.parallel.enabled", true)
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
}
}
}
Sukhbir Singh
02/23/2022, 6:34 PMSterling
It is only covering default src/test and not the test suite directory that I have added using this plugin. So, can you guide me can I accomplish this. I want to get report coverage both src/tests folder as well as all tests from test suites.Ah, I understand. I think you can do something like this:
testing {
suites {
// other configuration
withType(JvmTestSuite) {
targets.all {
tasks.named("jacocoTestReport").configure {
executionData.from(testTask)
}
}
}
}
}
This says the jacocoTestReport gets execution data from all jvm test suite targets.Sterling
(3) Does this plugin, also donot support setting up of System Property ??I think you're confusing the test suite named "test" with the
Test
task named "test". Each test suite could have one or more test tasks associated with it, so you need to be a little more verbose:
testing {
suites {
test {
// other configuration
targets.all {
testTask.configure {
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
}
}
}
}
}
Sukhbir Singh
02/24/2022, 4:20 AMexecutionData.from fileTree(dir: project.buildDir, includes: ['jacoco/test.exec','jacoco/smokeTest.exec'])
(3) This is also working.
Thanks team for the help!! You guys are awesome.