Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.8.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
When running JUnit tests with Maven 1.1.0 on Linux if the final test fails I get non-standard output. To attempt to explain better ...
[junit] Running org.jpox.tests.NondurableIdTest
[junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 5.947 sec
[junit] [ERROR] Test org.jpox.tests.NondurableIdTest FAILED
[junit] Running org.jpox.tests.ObjectFCOTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.471 sec
[junit] Running org.jpox.tests.PersistenceManagerFactoryImplTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 25.693 sec
[junit] Running org.jpox.tests.PersistenceManagerImplTest
[junit] Tests run: 49, Failures: 1, Errors: 0, Time elapsed: 8.589 sec
[junit] [ERROR] Test org.jpox.tests.PersistenceManagerImplTest FAILED
[junit] Running org.jpox.tests.SequenceTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.072 sec
[junit] Running org.jpox.tests.SerializationTest
[junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 3.607 sec
[junit] Running org.jpox.tests.TransactionTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.142 sec
[junit] Running org.jpox.tests.TypeManagerTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.016 sec
[junit] Running org.jpox.tests.TypeStorageTest
[junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 11.486 sec
[junit] Running org.jpox.tests.TypesMappingTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.016 sec
[junit] Running org.jpox.tests.ViewTest
[junit] Tests run: 5, Failures: 0, Errors: 1, Time elapsed: 2.33 sec
-------------------------------------------------------------------------------
>> Unable to obtain goal [test:test]
>> Test org.jpox.tests.ViewTest failed
-------------------------------------------------------------------------------
BUILD FAILED
So normally when a test fails you get the line [ERROR] but when its the final test you dont get that and get the ugly "Unable to obtain goal" etc. Why is it not displaying the final test correctly?
Note the difference between failures and errors, apparently you are using maven.test.failure.ignore=true (right?), but the build fails because of an error.