Pre-requisites

Maven 3 is required because some of the below plugins have this requirement.
If you need to keep a Maven 2 build for your dev team, put all this configuration in a Maven profile dedicated to your Sonar build (ex: Profile integration).

This plugin will execute a SoapUI test suite contained in a SoapUI project XML file.
If you want to filter (using Maven filtering) this file, use the projectFile property to load the project’s file from the target directory :

Attribute classesDirectory must be specified to use the instrumented classes.

The goal start is a new one introduced by the new version of the Jetty plugin. It starts a Jetty server without first executing the build up to “test-compile” phase.
Do not forget to set the attribute true in order to force Jetty to execute only while Maven is running, instead of running indefinitely.

Maven phases pre-integration-test and post-integration-test are used to start and stop the Jetty server.

Reporting

The reporting phase is mandatory to generate the Cobertura report. A bug prevents the Cobertura report to be generated in the integration-test phase.

Complement

]]>http://blog.infin-it.fr/2012/12/13/maven-integration-tests-with-soapui-and-sonar-code-coverage/feed/0Sonar DotNet Gallio : An attempt was made to load a program with an incorrect format.http://blog.infin-it.fr/2012/10/29/sonar-dotnet-gallio-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/
http://blog.infin-it.fr/2012/10/29/sonar-dotnet-gallio-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/#commentsMon, 29 Oct 2012 15:37:54 +0000http://blog.infin-it.fr/?p=454When using the sonar-csharp-core-plugin with Gallio (for executing Unit Tests), you may encounter the following error An attempt was made to load a program with an incorrect format: