Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Enable assertions in Tycho Surefire tests?

ok...

now just pay attention on the dependencies that you need to run the tests...

The best way is to declared the bundles that will needed to be installed in the test osgi container in the manifest of your test project:

for example:

Require-Bundle: org.junit;bundle-version="4.8.2",
org.hamcrest;bundle-version="1.1.0",
 org.hamcrest.core;bundle-version="1.1.0",
 org.eclipse.equinox.cm;bundle-version="1.0.300",
 org.eclipse.equinox.ds;bundle-version="1.3.1",
org.eclipse.equinox.log;bundle-version="1.2.200",
 org.eclipse.equinox.common;bundle-version="3.6.0",
org.eclipse.equinox.simpleconfigurator;bundle-version="1.0.200",
  org.eclipse.ant.core;bundle-version="3.2.300",
 org.eclipse.core.variables;bundle-version="3.2.500",
 org.eclipse.osgi.services;bundle-version="3.3.0",
 org.eclipse.osgi.util;bundle-version="3.2.200",
 org.jbehave.osgi;bundle-version="0.0.2"

regards,

Cristiano


On 20/02/12 16:53, Thomas Smith wrote:
Ah, the demos.

Using this example:
http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-demo/itp01/tycho.demo.itp01.tests/pom.xml

I came up with this pom fragment, which works:

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-surefire-plugin</artifactId>
					<version>${tychoVersion}</version>
					<configuration>
						<argLine>-ea</argLine>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

Thanks!
-Thomas

On Mon, Feb 20, 2012 at 2:45 PM, Cristiano Gavião<cvgaviao@xxxxxxxxx>  wrote:
you can run any junit osgi test...  take a look at the examples that come
with the tycho source...

regards,

Cristiano


On 20/02/12 14:46, Thomas Smith wrote:
Hi,

I'm running some unit tests with the tycho-surefire-plugin 0.14.0, and
I'd like to enable Java assertions for the test run.  How can I do
that?  I couldn't google it up...

Thanks!
-Thomas

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user





Back to the top