redfish4ktc/maven-soapui-extension-plugin — Issue #3: add a test-verify goal
Author: redfish4ktc
Created: 2012-01-27 06:29:18+00:00
State: open

Currently, when running the "test" goal, we have 2 options:
- by default, the build fails just after errors occur
- if the "testFailIgnore" is set to true, the build does not fail after plugin execution but we do not have any way to easily know if there are errors

Usually, there is only a soapui project that stores the tests, so the first option is ok.
But when there are several projects, this is different.

Soapui currently does not support multi projects. The workaround with maven is to configure several executions.
See http://www.eviware.com/forum/viewtopic.php?f=14&t=12052 or http://www.soapui.org/forum/viewtopic.php?f=14&t=5381#p17979
In this case, we must set the "testFailIgnore" parameter to true to be sure that all projects are run but we cannot get the status of the runs.

To fix this, I propose to add a new "test-verify" goal that will check if there have been errors in previous test runs.
This means that at each runs, the "test" goal must set something in the maven project context to be used later by the "test-verify" goal (setting a property to true on errors seems to be ok)