Closed tomas-muller closed 2 months ago
I remember experiencing similar problems when attempting to run JUnit 4 tests in Maven with JUnit 5 somehow getting in the classpath, without the corresponding junit-vintage
dependency. When that happens, Maven decides to run tests using JUnit 5, and JUnit 5 is unable to find JUnit 4 tests.
I see JUnit 5 is being used to run tests in both cases:
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
Maybe there was some dependency change in hibernate-testing
causing a similar issue to what I encountered in the past...
@marko-bekhta My bet would be on https://github.com/hibernate/hibernate-orm/commit/19e495d8da7610503afd50083b003de631d25564 being involved in this problem, but I may be wrong. Do you think you could have a look?
looking ... 🏃🏻
Thanks @tomas-muller for bringing this up!
I've converted the test case examples to JUnit 5 since we've been using it for a while now for new ORM tests. So it should all be good now, could you pull the latest changes and give it a try with your test case?
@marko-bekhta Yes, it is working for me now. Thank you!
I am trying to create a test case for a bug I am experiencing in Hibernate 6.6.0; however,
mvn test
under hibernate-orm-6 does not execute any tests:I created a fresh copy of the templates with no files changed. When I set the version.org.hibernate.orm back to 6.5.2.Final in pom.xml, there are four tests (those hhh123Test) executed:
The only difference is the setting of
version.org.hibernate.orm
in pom.xml. I can see the four test templates are also executed with version 6.6.0.Alpha1, but not with any later version.