talios / clojure-maven-plugin

Apache Maven Mojo for compiling clojure scripts to class files
251 stars 74 forks source link

Test script template could be modified to make the plugin compatible with alternative testing frameworks #34

Open jkrueger opened 13 years ago

jkrueger commented 13 years ago

At the moment the plugin fails a build when any tests generate a result of :error or :fail. Since it is possible to modify clojure.test's reporting, alternative test frameworks may use other keys than :error or :fail to indicate a failing test. Midje does this for example. The result is that a mvn clojure:test run will write a correct report of failing tests but doesn't fail the build.

To allow use of alternative test frameworks, that can plug into clojure.test's reporting, a build should be failed when any test does not :pass instead of failing it, when it has an :error or :fail(s).