Okay, so I get it to work now by changing the Bundle-SymbolicName name to
org.junit and the version number to 3.8.0 (it was 1.0.0 before).  (is this
the right way to do it, btw?)

Hmm, does this mean that somewhere in Tycho source code, it really expects
"Bundle-SymbolicName.equals("org.junit") && Bundle-Version.equals("3.8.1")"
to be true?  Hmmm, that does indeed sound too restrictive.  I'll see if I
can file a request to improve this behaviour. 

Hansen

Hansen Candrawinata wrote:
> 
> 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
> 
-- 
View this message in context: 
http://www.nabble.com/Tycho-with-JUnit---How--tp22155897p22194394.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email


Reply via email to