Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-18 Thread David Karr
In my case, it appears that all I had to do after adding the correct junit-bom version import before the import of the "spring-boot-dependencies" bom was figure out where to exclude junit-platform-runner. I can see where the junit-{platform,jupiter} dependencies are in the tree, but it's a little

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-18 Thread Karl Heinz Marbaise
Hi, On 17.06.22 20:46, David Karr wrote: Ok, what is the proper way to do that, considering I have the following in a bom imported by my parent pom: org.junit junit-bom import pom

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
Never mind, I think I figured this out. I had two "parent" artifacts with similar names, and I ran the build in the wrong one. It's still a bit confusing where the exclusion has to go, but I now have a single exclusion for junit-platform-runner, in the parent pom, so I don't have to do this in

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
Ok, so the tree has output like this: -- [INFO] +- com.att.idp:idp-seed-sdk-core:jar:2.7.0-SNAPSHOT:compile [INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.8.2:compile [INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:compile [INFO] | | \-

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread Slawomir Jaranowski
Import scope only sets versions of dependency - not add it to dependency. Please examine output of dependency:tree and look where is added junit-platform-runner pt., 17 cze 2022 o 20:47 David Karr napisał(a): > Ok, what is the proper way to do that, considering I have the following in > a bom

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
Ok, what is the proper way to do that, considering I have the following in a bom imported by my parent pom: org.junit junit-bom import pom 5.8.2

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread Slawomir Jaranowski
Do you have on your classpath - junit-platform-runner? Please remove it. pt., 17 cze 2022 o 20:23 David Karr napisał(a): > I'm posting a new note, as this might be a different issue. > > I recently got good advice on this list about how to properly specify the > version overrides for the

Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
I'm posting a new note, as this might be a different issue. I recently got good advice on this list about how to properly specify the version overrides for the junit-bom artifacts. When I implemented that, I saw that I was consistently getting the correct versions for those artifacts. However,