You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steinar Bang <sb...@dod.no> on 2008/04/23 10:51:54 UTC

Looking for pde:test example

Platform: Ubuntu 7.10, Intel pentium M,
	  Sun Java 1.5.0_11
	  eclipse 3.2.2 SDK,
	  eclipse-Automated-Tests-3.2.2.zip,
	  maven 2.0.7,
	  pde-maven-plugin 1.0-alpha-1

I have been successful in building a feature based RCP product, using
the pde-maven-plugin.

Now I'm trying to get the UI plugin tests to run, and I've tried to make
the pde:test goal run:
	http://mojo.codehaus.org/pde-maven-plugin/test-mojo.html

Does anyone know of an example of using this goal?  So far I've been
unsuccessful in googling up an example.

What I've tried, is:
 1. made a copy of the product build for linux
 2. modified the POM in the copy to have pde:test execution config,
    instead of the pde:ext execution that build the product
 3. run a build with "mvn clean install", which seemed to build the same
    as the regular product 
 4. copy in the config parameters that is inherited from a parent POM
 5. tried to run "mvn test", but it still seemed to do the regular build
 6. download the eclipse-Automates-Tests for 3.2.2 and extract the
    test.xml file from there, and drop it into the test project's
    ${basedir} 
 7. do "mvn clean install", "mvn test", and "mvn install", and they all
    seemed to do the same thing (ie. build the product).  The output
    from the build, didn't mention "test.xml" at all
 8. I tried "mvn pde:test", and then I was at least able to provoke it
    to output an error message from reading test.xml:
setup:

BUILD FAILED
/media/sda8/bangste/p4/depot/ccr/MAIN/ccr_eclipse_studio_export/content_studio_test/test.xml:508: The following error occurred while executing this line:
/media/sda8/bangste/p4/depot/ccr/MAIN/ccr_eclipse_studio_export/content_studio_test/test.xml:285: The following error occurred while executing this line:
/media/sda8/bangste/p4/depot/ccr/MAIN/ccr_eclipse_studio_export/content_studio_test/test.xml:182: The following error occurred while executing this line:
/media/sda8/bangste/p4/depot/ccr/MAIN/ccr_eclipse_studio_export/content_studio_test/test.xml:161: The following error occurred while executing this line:
/media/sda8/bangste/p4/depot/ccr/MAIN/ccr_eclipse_studio_export/content_studio_test/test.xml:112: The following error occurred while executing this line:
Target `${setupTarget}' does not exist in this project. 

My current sources for how PDE build tests are supposed to work, are:
 http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.pde.doc.user/guide/tools/launchers/junit_launcher.htm
 http://wiki.eclipse.org/index.php/PDEBuild
 http://www.eclipse.org/articles/Article-PDE-Automation/automation.html

Some of the information in the above URLs, seems to be a bit dated.

All hints, tips, pointers, etc. are welcome!  It doesn't have to be
related to pde-maven-plugin, even.  Any way of building eclipse RCP
applications, and do the JUnit tests on them, using maven, is of
interest (especially the stuff that can be made to work with eclipse
3.2.2...).


- Steinar


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org