Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Multiple testclass invocations per plugin

Hi

(The reportsDirectory provides separation of repeated names.)

But my original problem is not solved. I need multiple launches of one testClass corresponding to a Buckminster launch of a JUnit launch configuration and later of a JUnit Plugin launch configuration.

For a JUnit configuration, I do not want OSGI to start. (useUIHarness=false still starts OSGI). I cannot see how to do this with the tycho-surefire-plugin; seems contrary to its philosophy; providing non-Eclipse functionality within an Eclipse added value.

So I presume I should revert to the maven-surefire-plugin, but it appears that the tycho-surefire-plugin subverts its functionality. I don't think I have succeeded in getting maven-surefire-plugin to run any tests. I thought I had but that was just a mega-confusion caused by the helpful "default-test"; the kind of help that I normally associate with Microsoft tools.

Any clues on how to emulate a JUnit launch as well as a JUnit Plugin launch?

    Regards

        Ed Willink


On 13/10/2017 16:36, Ed Willink wrote:

Hi

Thanks. Spot on tip. My root POM had a default surefire configuration giving me a default test that did not co-exist well with the new explicit tests.

Next challenge: how to stop the two sets of surefire-reports sharing the same name. With JUnit I have a -DtestSuiteName but that gets lost. Is there a better way than setting alternative reportsDirectory values to separate them?

    Regards

        Ed Willink


On 13/10/2017 16:04, Mickael Istria wrote:
Hi,

I support Bidon's answer.
About the "execution" tag, it's not specific to Surefire but to the Maven POM model, which allows multiple execution of any Maven plugin. So you'll have to find plain Maven documentation for details about how parameters are passed and/or overridden through the multiple "configuration" blocks.
A small tip I think is worth mentioning right away is to use `mvn help:effective-pom` to see how the pom file is extended and see a "verbose" view of your pom file which should help to disambiguate some settings.

HTH


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Virus-free. www.avast.com


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top