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. Copy the pom.xml file from the com.packtpub.e4.clock.ui plug-in to the com.packtpub.e4.junit.plugin project.
  4. Modify the packaging type to <packaging>eclipse-test-plugin</packaging>.
  5. Change the artifactId to com.packtpub.e4.junit.plugin ...

Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.