Hi, I solved my issue : tests run with success with mvn command line and within eclipse IDE ! To resolve it, I declared the helloWorld bundle as a fragment into the helloworld.tests manifest :
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: HelloWorld tests Plug-in Bundle-SymbolicName: helloWorld.tests; singleton:=true Bundle-Version: 1.0.0 Fragment-Host: helloWorld;bundle-version="1.0.0" Require-Bundle: org.junit;bundle-version="3.8.0" Thanks Igor for all your help and all your usefull posts ! Tycho is a great tool ! sandraB wrote: > > When I right click on the HelloWorls/hellowordl.launch file, I only have > the Run as helloworld possibility > http://www.nabble.com/file/p21416345/helloworld.png . Do I need to move > the helloworld.launch into the helloworld.tests repository ? > > > Igor Fedorenko-4 wrote: >> >> You need to use Run As->JUnit Plug-in Test to run test plugins in PDE. >> >> sandraB wrote: >>> I fixed my previous error but I have another one: Bundle >>> helloWorld.tests is >>> not found. >>> I imagine that the 3 modules defined in the pom.xml of the >>> Helloworld_project are not found when I launch the tests in the eclipse >>> IDE. >>> All works fine with the "mvn install" command line. >>> >>> Here is my helloworld.launch: >>> >>> <?xml version="1.0" encoding="UTF-8" standalone="no"?> >>> <launchConfiguration >>> type="org.maven.ide.eclipse.Maven2LaunchConfigurationType"> >>> <booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/> >>> <listAttribute key="M2_FORCED_COMPONENTS_LIST"> >>> <listEntry >>> value="org.codehaus.tycho:tycho-osgi-components:0.3.0-DEV-1819"/> >>> <listEntry value="org.eclipse:org.eclipse.osgi:3.4.0.v20080605-1900"/> >>> </listAttribute> >>> <stringAttribute key="M2_GOALS" value="clean install -X"/> >>> <booleanAttribute key="M2_NON_RECURSIVE" value="false"/> >>> <booleanAttribute key="M2_OFFLINE" value="false"/> >>> <stringAttribute key="M2_PROFILES" value=""/> >>> <listAttribute key="M2_PROPERTIES"/> >>> <stringAttribute key="M2_RUNTIME" >>> value="D:\sandra\appli\maven\tycho-distribution-0.3.0-DEV-1819"/> >>> <booleanAttribute key="M2_SKIP_TESTS" value="false"/> >>> <booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/> >>> <booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/> >>> <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" >>> value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.6.0_07"/> >>> <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" >>> value="D:\sandra\Projets\3.4.1\helloWorld_Project"/> >>> </launchConfiguration> >>> >>> >>> >>> >>> >>> sandraB wrote: >>>> Hi, >>>> I try to use the eclipse-test-plugin packaging for testing an eclipse >>>> plugin developpement with tycho. Here is my repositories : >>>> Helloworld_project >>>> -- Helloworld (eclipse-plugin) >>>> -- Helloworld.features (eclipse-feature) >>>> -- Helloworld.site (eclipse-update-site) >>>> -- Helloworld.tests (eclipse-test-plugin) >>>> >>>> I succesfully call and run the osgi-test:test goal using the mvn >>>> install >>>> command. But I can't run JUnit tests in the eclipse environnement >>>> because >>>> the helloWorld_1.0.0 bundle is not found (the >>>> Platform.getBundle("helloWorld") return a null object) >>>> For information, I follow this installation procedure >>>> http://docs.codehaus.org/display/M2ECLIPSE/Tycho+development+environment >>>> Could you help me to resolve this issue ? >>>> Thanks in advance >>>> Sandra >>>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> > > -- View this message in context: http://www.nabble.com/Tycho-and-JUnit-test-tp21414455p21437090.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
