Is there a special procedure to get the mvn site reports when you have Arquillian tests?
The project i'm working on has several Arquillian tests. And I ran a maven site generation command with the following command:
mvn -Pjbossas-remote-6 site:site
but all the Arquillian tests fail with errors.
I get all the other reports without no hassle. But the corbertura report only has the test coverage of non Arquillian tests.
The surefire report says:
java.lang.NoClassDefFoundError: net/sourceforge/cobertura/coveragedata/HasBeenInstrumented
There are no errors on the jboss log. the test.war clearly deploys.
it's clear i can solve this issue with adding
.addClass(HasBeenInstrumented.class)
to the shrinkwrap archive. But i'd like another solution if there is one.
Currently you would have to add the cobertura library to the Server lib folder or similar. But Covertura will most likly write out the reports on server shutdown somewhere in the servers workdirectory, and these are needed for the report generation..