Maven Plugin Development

Integration Testing

Overview

This chapter is made for people who are developing Maven Plugins and trying to do some integration testing on those plugins. The reason is often that a unit tests is not comprehensive enough to check all aspects of the behavior in particular of a plugin. It's a good practice to do automatic testing of the runtime behavior of a plugin and the best way to do this is to write integration tests.

For different point of view you can take a look at the Plugin testing strategies or you can take a look at the wiki page which is referenced there to get an overview, but i have to say that some of those sources ().. are out of date in particular in relationship with Maven 3.

The only alternatives are the Maven SHITTY Plugin unfortunately this plugin is from 2008 and it looks like that the development has been abandoned (drop me a mail if this is not true).

The other one is the Maven Invoker Plugin which can easily be used for integration tests of Maven Plugins.