O'Reilly logo

Eclipse 4 Plug-in Development by Example Beginner's Guide by Dr. Alex Blewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – running automated tests

Although a plug-in's code-based tests (those under src/test/java) will be run automatically as part of a Maven build, very often it is necessary to test them in a running Eclipse application. The previous chapter covered creating automated UI tests; now they will be run as part of the automated build.

  1. Move the com.packtpub.e4.junit.plugin project underneath the com.packtpub.e4.parent project.
  2. Add the line <module>com.packtpub.e4.junit.plugin</module> to the parent pom.xml file.
  3. Add the SWTBot repository to the parent pom.xml file:
     <properties> <swtbot>http://download.eclipse.org/technology</swtbot> </properties> ... <repositories> <repository> <id>swtbot</id> <layout>p2</layout> <url>${swtbot}</url> </repository> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required