Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Question about possible dependency issue in tests versus workbench

Hi,

You should compare your Tycho Surefire runtime with the JUnit Plugin Test Run configuration. The Run Configuration in the workbench probably adds some extra bundles to the test runtime that are necessary for your test to succeed and that would need to be added to the surefire runtime.
You can either put this dependencies as Required-Bundle in the MANIFEST.MF (so it's portable), or define it in the pom.xml <additionalDependencies> tag of tycho-surefire-plugin (Maven-specific).
At any time, you can see exactly which bundle are part of your Surefire test looking in <testBundle>/target/work/configuration/config.ini.

HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top