sbrannen/junit5-demo

Missing the Jupiter platform configuration

Closed this issue · 3 comments

Your code snippet, is missing the Jupiter platform configuration in the build.gradle file. Because of this when running gradle test tests are not actually picked up.

Add
test { useJUnitPlatform() }
for the project to be fully valid, even when build is run from the command line.

Hi @iuliana,

Which "snippet" are you referring to?

build.gradle properly configures the test task to use the JUnit Platform:

junit5-demo/build.gradle

Lines 52 to 58 in 9aeb698

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed" // "standardOut", "standardError"
}
}

I think I was building a different project. My bad. I'm sorry.

No worries. Thanks for the feedback.