Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] headless and ui tests in the same plugin

Hi

thanks for your answer; however, if I use the execution all the tests in the plugins are executed and not the test suite as it did before... even if I use one single <execution>... am I missing something?

thanks again
	Lorenzo

On 03/27/2012 02:12 AM, Pascal Rapicault wrote:
This can be achieved by executing the test mojo multiple times with
different configuration.
This can be achieved using the <executions> markup from Maven.
See below for an example running the tests.

HTH

Pascal

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>Headless-tests</id>
<configuration>
<testSuite>suiteName</testSuite>
<testClass>testClass</testClass>
<argLine>-Xmx512m</argLine>
<appArgLine>-nl en</appArgLine>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
<execution>
<id>UITests</id>
<configuration>
<testSuite>suiteName</testSuite>
<testClass>testClass</testClass>
<argLine>-Xmx512m</argLine>
<useUIHarness>true</useUIHarness>
<appArgLine>-nl en</appArgLine>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>


On 2012-03-26, at 5:48 PM, Lorenzo Bettini wrote:

Hi

I have a plugin project where I have both headless and UI tests; is
there a way to run both kinds of tests in the same pom?

thanks in advance
Lorenzo



--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com




Back to the top