Have a look at Tycho junit support integration test [1]. Make sure target platform has org.junit bundles (all Eclipse SDKs have it) and run the build using

$TYCHO_HOME/bin/mvn integration-test

from parent project folder.

[1] http://svn.sonatype.org/m2eclipse/tycho/trunk/tycho-its/projects/TYCHO170

Hansen Candrawinata wrote:

Igor Fedorenko-4 wrote:
In the mean time, you can add junit dependency directly to your test project using something like

Require-Bundle: pac_third_party_test;bundle-version="1.0.0",org.junit



Igor,

Thanks for replying.  But how do I get my test project to directly depend on
org.junit?  As I said, the Eclipse plugin pac_third_party_test already
contains the junit4 libraries, and my test project depends upon this plugin.
Do I simply just change the pac_third_party_test's Bundle-SymbolicName name
to org.junit and then change my test project to depend on org.junit instead
of pac_third_party_test?  I tried this, and it initially seemed to work, but
in the end it issued the message:

Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.

Please refer to c:\XXXXXX\pac-core.tests\target\surefire-reports for the
individual test results.
        at org.codehaus.tycho.osgitest.TestMojo.execute(TestMojo.java:243)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:623)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:521)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:288)
        ... 14 more

But when I look into the target\surefire-reports directory, there were no
test results - it's an empty directory.

Thanks,
Hansen


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to