You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Allen, Daniel" <Da...@kbcfp.com> on 2008/04/17 21:42:28 UTC

Surefire test & JUnit's TestCase.fail() method

Hi, all.

I'm using Maven to automatically run my suite of unit tests, which are
made with JUnit 4.4, and I'm having some trouble with it. It runs the
tests successfully, but when one fails, it doesn't give me the message
that I used in the test case. That is, JUnit's TestCase class has the
method fail(String) so that you can add some details about what
particular way the test failed. The Surefire plugin doesn't seem to keep
that message; it only tells me that such and such a test failed.

Is ther a configuration variable I can change? I looked at the
documentation[1], but nothing mentioned the fail() messages.

Thanks,
~Dan Allen

[1]http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org