Don't even bother filing an issue, at least not here. JUnit4.X is not "compatible" with 3.8.1 in the sense that you can expect to have both jars in the same maven module and expect them to "work". JUnit 4.X can run JUnit 3 tests on itself though, so I think you can save the calories if you're considering reporting to the JUnit project.
TestNG is compatible with JUnit 3.X, but not 4.X. Theorietically you could waste half an hour nagging Cedric on some TestNG mailing list about this. I would consider going for a walk in the sunshine instead. But you can always run them in multiple-modules. Kristian 2012/2/21 Gogirl <[email protected]>: > In this article; Enda states that it’s a known problem to get JUnit 4 and > TestNG working together in a single maven build. > http://enda.squarespace.com/testng-junit4-in-maven/ > > I have testng, junit 3.81 and junit 4.8.1. TestNG is stable. junit 3.81 ran > under both dependencies for junit 4.8.1. and 3.4.1, however it no longer > compiled when any junit 4.8.1. test code is added. junit 4.8.1. test code > runs fine under 4.8.1. dependency but not under dependency 3.8.1. > Apparently, you can only have the 4.81 dependency. > > All my files run fine under the dos command line. To be honest I cannot > understand Enda's complicated solution. Does this warrant being reported as > a bug? Would anybody be willing to look at the code if i place it somewhere? > In its present state, it is pretty trivial and easy to reproduce. > > -- > View this message in context: > http://maven.40175.n5.nabble.com/known-problem-to-get-JUnit-4-and-TestNG-working-together-tp5500597p5500597.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
