In jist a high level view of running swtbot ui tests with maven/tycho
- Specify proper packaging i.e eclipse-test-plugin
 - Specify src directory to maven build, usually it’s different in eclipse than what maven thinks
 - Specify various parameters(memory, language, arch, ws, os, ..) correctly to vm and program
 - Add necessary elements (UIHarness, UIThread…, application…) to tycho-surefire configuration
 - Add all implicit dependencies of application/product as explicit to manifest file of the test plugin. Because tycho cannot resolve implicit dependencies.
 - Add p2 repositories to pom so that target platform can be resolved into pom dependencies.
 - Add Declarative Services library/ dependency to test plugin if it uses any declarative service to initialize application/product
 
No comments:
Post a Comment