Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Plug-in tests

>Does Tycho automatically run surefire on any projects that use the eclipse-test-plugin packaging type? 

yes.

> Does Tycho require that I configure the pom of each of them if I need to, for example, specify special VM parameters?

you can introduce a (test) parent pom which defines common configuration and make all test modules reference this as parent pom.
This is general maven functionality, not tycho-specific.

>On a more general note, I'm looking for a comprehensive example or guide for running JUnit tests for an RCP product build.
> The examples I've seen so far don't account for the fact that a
>product has special context that needs to be satisfied for the tests to run.
> For example, some of our tests require that Equinox DS plugin be auto-started with a start level to make sure 
>declared services are available before the test is executed.

See [1] and [2]

Jan

[1] http://wiki.eclipse.org/Tycho/Reference_Card#Bundle_start_level 
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=386988 


From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Rizzo, Eric
Sent: Donnerstag, 6. Dezember 2012 23:16
To: Tycho user list
Subject: [tycho-user] Plug-in tests

Using Tycho 0.16.
Does Tycho automatically run surefire on any projects that use the eclipse-test-plugin packaging type? It appears so, as I have just added the plugin-test projects to my new Tycho build and I'm getting surefire test failures without having added any configuration at all for surefire.
Related question: our product has numerous different plugin-test projects. Does Tycho require that I configure the pom of each of them if I need to, for example, specify special VM parameters? Or is there some way to configure all tests in one place without duplicating that in many poms?

On a more general note, I'm looking for a comprehensive example or guide for running JUnit tests for an RCP product build. The examples I've seen so far don't account for the fact that a product has special context that needs to be satisfied for the tests to run. For example, some of our tests require that Equinox DS plugin be auto-started with a start level to make sure declared services are available before the test is executed. There are other requirements for our product, which is why we have a detailed launch configuration for executing the tests from within the IDE. I guess what I need is some help converting that launch configuration (and the custom TestSuite it uses to collect tests) into an appropriate Tycho configuration.

Thanks in advance,
Eric



Back to the top