Jump to: navigation, search

Difference between revisions of "Tycho/Release Notes/0.19"

(New and Noteworthy: set-version updates exported pagkages; add sub-headings)
(Test Execution)
Line 24: Line 24:
  
 
=== Test Execution ===
 
=== Test Execution ===
 +
 +
* Add experimental support for test runtime provisioned by p2.<p> This can be used for integration test scenarios which require a fully provisioned application (including root files etc.), same as it would be delivered to customers. Example:<br/>
 +
To install product under test with ID "example.product.id", test bundle and tycho surefire test harness bundles using the p2 director, use the following pom.xml snippet in the test module:
 +
<pre>
 +
<plugin>
 +
<groupId>org.eclipse.tycho</groupId>
 +
<artifactId>tycho-surefire-plugin</artifactId>
 +
<version>${tycho-version}</version>
 +
<configuration>
 +
<testRuntime>p2Installed</testRuntime>
 +
</configuration>
 +
</plugin>
 +
<plugin>
 +
<groupId>org.eclipse.tycho</groupId>
 +
<artifactId>target-platform-configuration</artifactId>
 +
<version>${tycho-version}</version>
 +
<configuration>
 +
<dependency-resolution>
 +
<extraRequirements>
 +
<!-- add dependency  to product IU under test -->
 +
<requirement>
 +
<type>p2-installable-unit</type>
 +
<id>example.product.id</id>
 +
<versionRange>0.0.0</versionRange>
 +
</requirement>
 +
</extraRequirements>
 +
</dependency-resolution>
 +
</configuration>
 +
</plugin>
 +
</pre>
 +
 +
Note that <tt>testRuntime=p2Installed</tt> currently only works when testing products.
 +
You can also run tests on existing product archives built elsewhere. To do this, just make sure to extract the product archive into <tt>target/work</tt> before the tests are run(i.e. in a [http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference phase] prior to <tt>integration-test</tt>).
 +
See docs &lt;TODO link to maven site&gt; for details.
  
 
* Add suppport for 'runOrder' parameter in tycho-surefire-plugin to run tests in random order ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=409923 bug 409923])
 
* Add suppport for 'runOrder' parameter in tycho-surefire-plugin to run tests in random order ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=409923 bug 409923])

Revision as of 04:15, 9 October 2013

< Previous Version | Next Version >

Tycho 0.19.0 is currently under development. This page shows a preview of features which will be available in the 0.19.0 milestone.

List of bug fixes and enhancements in 0.19.0

SNAPSHOT builds

To try out the most recent snapshot build of 0.19.0, simply add the following snippet to your (parent) pom.xml, and set the property for the Tycho version (e.g. tycho-version) to 0.19.0-SNAPSHOT.

<pluginRepositories>
  <pluginRepository>
    <id>tycho-snapshots</id>
    <url>https://oss.sonatype.org/content/groups/public/</url>
  </pluginRepository>
</pluginRepositories>

New and Noteworthy

Test Execution

  • Add experimental support for test runtime provisioned by p2.

    This can be used for integration test scenarios which require a fully provisioned application (including root files etc.), same as it would be delivered to customers. Example:

To install product under test with ID "example.product.id", test bundle and tycho surefire test harness bundles using the p2 director, use the following pom.xml snippet in the test module:

<plugin>
	<groupId>org.eclipse.tycho</groupId>
	<artifactId>tycho-surefire-plugin</artifactId>
	<version>${tycho-version}</version>
	<configuration>
		<testRuntime>p2Installed</testRuntime>
	</configuration>
</plugin>
<plugin>
	<groupId>org.eclipse.tycho</groupId>
	<artifactId>target-platform-configuration</artifactId>
	<version>${tycho-version}</version>
	<configuration>
		<dependency-resolution>
			<extraRequirements>
				<!-- add dependency  to product IU under test -->
				<requirement>
					<type>p2-installable-unit</type>
					<id>example.product.id</id>
					<versionRange>0.0.0</versionRange>
				</requirement>
			</extraRequirements>
		</dependency-resolution>
	</configuration>
</plugin>

Note that testRuntime=p2Installed currently only works when testing products. You can also run tests on existing product archives built elsewhere. To do this, just make sure to extract the product archive into target/work before the tests are run(i.e. in a phase prior to integration-test). See docs <TODO link to maven site> for details.

  • Add suppport for 'runOrder' parameter in tycho-surefire-plugin to run tests in random order (bug 409923)

Other