Re: Problem running junit plugin tests with CDT parent pom: No tests found
My guess is that you don't have a class called AutomatedIntegrationSuite in your test plug-in. This is not a requirement, but rather the CDT default as defined in the root pom.xml (which overrides the default default in surefire). If you want to have custom surefire configuration you need to provide your own settings in your pom.xml - specifically the tycho-surefire-plugin/configuration/includes/, see https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/test-mojo.html#includes
Eclipse doesn't exactly require it - something in the target platform is causing Tycho to add o.e.compare.win32 to the set of bundles included when launching, but then it is unresolved because of the platform difference. This could be a tycho issue or an issue in CDT's target platform. However I don't really understand the issue, but I do know it can be ignored.
Could that be the problem?
Originally, all tests ran fine with the /maven/-surefire-plugin. Now
CDt runs them with the /tycho/-maven-plugin. Do I need to tweak my
My guess is that you have unit tests that can run with maven surefire as they can run without OSGi (aka they can run as JUnit Tests and don't need to be run as JUnit Plug-in Tests)? The tycho extension to surefire understands OSGi and can launch accordingly. However the tycho tests are bound to the verify phase of maven, not test phase.
When running maven with debug output, I can the that the test classes
are at the location wher surefire expects them:
I am not sure which line indicates that. The line that says "includes = " shows what pattern surefire is looking for (as mentioned above)
As for the probable follow-on question, I don't know why it is like it is, but probably because of JUnit3 history when everything was defined as suites. I would be fine making the change across the board with new defaults. Indeed in many ways it would be an improvement as it can be easy to forget to add new tests to the suite.