Closed jaymes-bearden closed 10 years ago
Note: This is for our CI server, Bamboo so we can view the results after the build has completed.
@jaymes-bearden I managed to get this working without using antrun by adding <phase>process-test-classes</phase>
to maven-karma-plugin's <execution>...</execution>
in the pom.
I believe this causes the karma tests to be run before surefire, which then aggregates everything in target/surefire-reports
.. so as long as you output karma reports into target/surefire-reports
it should be fine.
Closed with #16.
Currently, we have the plugin configured like so:
which allows us to execute PhantomJS with the junit reporter exporting the results to the src/main/webapp/resources/directory as test-results.xml (using the default configuration).
We would love another configuration option that could somehow export the test-results in a manor that could integrate with Surefire.
As a workaround, we do the following:
which as you can see is slightly hacky. Perhaps there's a better way to do this?