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.
Move the
com.packtpub.e4.junit.plugin
project underneath thecom.packtpub.e4.parent
project.Add the line
<module>com.packtpub.e4.junit.plugin</module>
to the parentpom.xml
file.Add the
SWTBot
repository to the parentpom.xml
file:<properties> <swtbot>http://download.eclipse.org/technology</swtbot> </properties> ... <repositories> <repository> <id>swtbot</id> <layout>p2</layout> <url>${swtbot}</url> </repository> </repositories>
Copy the
pom.xml
file from the...