cescoffier / maven-play2-plugin

A Maven Plugin to build Play2 applications
Apache License 2.0
49 stars 41 forks source link

Build success even on test failures #31

Closed oferbu closed 11 years ago

oferbu commented 11 years ago

The build status is success even if the tests were failed

(the XXXXXX below replace actual file or path names)

[info] 4 tests, 3 failures, 0 errors [error] Failed: : Total 5, Failed 3, Errors 0, Passed 2, Skipped 0 [error] Failed tests: [error] XXXXXXX [error] {file:XXXXXXXX: Tests unsuccessful [error] Total time: 3 s, completed 20:29:55 21/01/2013 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------

I tried both with or without

true

but there was no change with the final result

cescoffier commented 11 years ago

Could you tell me which version of the plugin and play you are using ?

I tried to reproduce it, and for me it has the expected behavior:

    [INFO] --- play2-maven-plugin:1.2.2-SNAPSHOT:test (default-test) @ your.artifact.id ---
[INFO] Looking for 'play' in the System PATH
[info] Loading project definition from /Users/clement/tmp/test/project
[info] Set current project to test (in build file:/Users/clement/tmp/test/)
[info] Compiling 1 Java source to /Users/clement/tmp/test/target/scala-2.9.1/test-classes...
[info] test.SimpleTest
[error] Test test.SimpleTest.simpleCheck failed: expected:<[3]> but was:<[2]>
[info] x test.SimpleTest.simpleCheck
[info]
[info]
[info] Total for test test.SimpleTest
[info] Finished in 0.07 seconds
[info] 1 tests, 1 failures, 0 errors
[error] Failed: : Total 1, Failed 1, Errors 0, Passed 0, Skipped 0
[error] Failed tests:
[error]     test.SimpleTest
[error] {file:/Users/clement/tmp/test/}test/test:test: Tests unsuccessful
[error] Total time: 1 s, completed Feb 3, 2013 10:03:31 AM
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.031s
[INFO] Finished at: Sun Feb 03 10:03:31 CET 2013
[INFO] Final Memory: 8M/81M
[INFO] ------------------------------------------------------------------------
cescoffier commented 11 years ago

Closed.