Maven plugin - Overview

This Maven plugin allows to execute Pattern Tests and generate an HTML report of the result.

Installation

Download it and copy the jar directly into your MAVEN_HOME/plugins directory. That's all.

Using it

First, you should check the Sample application which demonstrates how to use it.

Here are the steps to use it:

  • Create a src/test-aspect directory and put your own Pattern Tests here. This is also where you write Aspects that extends the abstract ones provided by the PatternTesting framework. Note that you can change this location by creating a maven.patterntesting.src property in your project.properties.
  • Type maven patterntesting. That will produce a raw XML file containing the pattern test violations.
  • Type maven site to generate the HTML report.

That's all really! Simple, no?