Quantcast
Channel: tycho-user
Viewing all articles
Browse latest Browse all 4647

Re: [tycho-user] Multiple testclass invocations per plugin

$
0
0

Hi

Thanks. I was looking for "execution" but there is no mention on the SureFile page or on Google. I need to read the documentation to understand your comments about defaults and selective execution. I just want them all to execute.

When I try it, I get a could not load ${tycho.testArgLine} just as I do when I miss the surefile tests altogether. Seems that per-execution argLine is ignored.

ÂÂÂ Regards

ÂÂÂ ÂÂÂ Ed Willink


On 13/10/2017 14:12, Bidon Gamelle wrote:
Hi Ed,

Think you can have several executions on surefire plugin.
ÂÂÂÂÂ <plugin>
ÂÂÂÂÂÂÂ <groupId>org.eclipse.tycho</groupId>
ÂÂÂÂÂÂÂ <artifactId>tycho-surefire-plugin</artifactId>
ÂÂÂÂÂÂÂ <version>${tycho-version}</version>
ÂÂÂÂÂÂÂ <executions>
ÂÂÂÂÂÂÂÂÂ <execution>
ÂÂÂÂÂÂÂÂÂÂÂ <id>headless</id>
ÂÂÂÂÂÂÂÂÂÂÂ <goals>
ÂÂÂÂÂÂÂÂÂÂÂÂÂ <goal>test</goal>
ÂÂÂÂÂÂÂÂÂÂÂ </goals>
ÂÂÂÂÂÂÂÂÂÂÂ <configuration>
ÂÂÂÂÂÂÂÂÂÂÂÂÂ ...
ÂÂÂÂÂÂÂÂÂÂÂÂÂ <useUIHarness>false</useUIHarness>
ÂÂÂÂÂÂÂÂÂÂÂ </configuration>
ÂÂÂÂÂÂÂÂÂ </execution>
ÂÂÂÂÂÂÂÂÂ <execution>
ÂÂÂÂÂÂÂÂÂÂÂ <id>with-ui</id>
ÂÂÂÂÂÂÂÂÂÂÂ <goals>
ÂÂÂÂÂÂÂÂÂÂÂÂÂ <goal>test</goal>
ÂÂÂÂÂÂÂÂÂÂÂ </goals>
ÂÂÂÂÂÂÂÂÂÂÂ <configuration>
ÂÂÂÂÂÂÂÂÂÂÂÂÂ ...
ÂÂÂÂÂÂÂÂÂÂÂÂÂ <useUIHarness>true</useUIHarness>
ÂÂÂÂÂÂÂÂÂÂÂ </configuration>
ÂÂÂÂÂÂÂÂÂ </execution>
ÂÂÂÂÂÂÂ </executions>
ÂÂÂÂÂ </plugin>


Note that the default execution will still be executed. Either you can use the default execution and one specific execution, or set skipTests to true to disable the default.

Regards,
franck

2017-10-13 13:56 GMT+02:00 Ed Willink <ed@xxxxxxxxxxxxx>:
Hi

I'm migrating from Buckminster where each "junit ..." line ran a test. I can do similar things with SureFire, but I'm stuck when it comes to running two test invocations for a plugin.

(Since EMF usage is very different standalone/headless and within Eclipse, I run the same tests twice for the two environments.)

Surefire provides useUIThread to configure headless, but it does not appear to be possible to have multiple executions with different configurations; useUIThread = false, useUIThread = true.

Is there a way or do I have to create dummy 'wrapper' plugins so that I can have different SureFire configurations in each wrapper?

ÂÂÂ Regards

ÂÂÂ ÂÂÂ Ed Willink


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
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



_______________________________________________
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

Viewing all articles
Browse latest Browse all 4647

Latest Images

Trending Articles



Latest Images