karma-runner / maven-karma-plugin

Maven plugin for running tests using Karma.
Apache License 2.0
45 stars 26 forks source link

Flag to prevent the MojoFailureException when the tests don't pass. #4

Closed uncertainprogress closed 11 years ago

uncertainprogress commented 11 years ago

I'm using the plugin as part of a much larger Java project with multiple modules. Right now, running the javascript tests with the plugin will raise the MojoFailureException, which halts all other activity in the maven execution.

My karma configuration file is writing the test failures out to JUnit output already, and I need to allow the maven execution to continue even if the karma tests fail. It would be helpful to have a flag that would prevent the MojoFailureException on failed tests.

kelveden commented 11 years ago

Sorry for the late reply. Agreed, sounds like a useful addition; I'll take a look or am happy to accept a pull request.

kelveden commented 11 years ago

A new release will get put up to Maven Central in the next few days.

uncertainprogress commented 11 years ago

NIce, thanks!