Maven 1.x Test Plugin

Final test failure leads to strange formatted error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.8.2
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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?

Activity

Hide
Lukas Theussl added a comment -

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.

Show
Lukas Theussl added a comment - 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.
Hide
Andy Jefferson added a comment -

Ahh, ok. So what should I be using to get the same behaviour as Maven 1.0.2 ? (because my settings are the same as I used there). I want it to plough on regardless.

Show
Andy Jefferson added a comment - Ahh, ok. So what should I be using to get the same behaviour as Maven 1.0.2 ? (because my settings are the same as I used there). I want it to plough on regardless.
Hide
Lukas Theussl added a comment -

maven.test.error.ignore=true Check the plugin properties ( http://maven.apache.org/maven-1.x/plugins/test/properties.html ), there are a few settings to control the behavior, and yes, some things have changed wrt m1.0.2...

Show
Lukas Theussl added a comment - maven.test.error.ignore=true Check the plugin properties ( http://maven.apache.org/maven-1.x/plugins/test/properties.html ), there are a few settings to control the behavior, and yes, some things have changed wrt m1.0.2...
Hide
Andy Jefferson added a comment -

Thx - last time I tried to find such settings there were no docs (but that was maybe 2 yrs ago). Glad its moving forward, and sorry for the erroneous bug report

Show
Andy Jefferson added a comment - Thx - last time I tried to find such settings there were no docs (but that was maybe 2 yrs ago). Glad its moving forward, and sorry for the erroneous bug report

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: