ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ot...@ivillage.com
Subject removing stack trace on failed Junit tests
Date Mon, 12 Nov 2001 20:28:40 GMT
Hello,

Is it possible to remove this stack trace printing when executing Junit tests?
I don't see a <junit> attribute that would allow this...

    [junit] 	FAILED
    [junit] expected:<1> but was:<0>
    [junit] junit.framework.AssertionFailedError: expected:<1> but was:<0>
    [junit] 	at junit.framework.Assert.fail(Assert.java:51)
    [junit] 	at junit.framework.Assert.failNotEquals(Assert.java:234)
    [junit] 	at junit.framework.Assert.assertEquals(Assert.java:68)
    [junit] 	at junit.framework.Assert.assertEquals(Assert.java:181)
    [junit] 	at junit.framework.Assert.assertEquals(Assert.java:187)
    [junit] 	at com.blink.blink.db.DARTMailDBTest.testGetEmailUpdatedUsersWithCompletedEmailChange(Unknown
Source)
    [junit] 	at java.lang.reflect.Method.invoke(Native Method)
    [junit] 	at junit.framework.TestCase.runTest(TestCase.java:166)
    [junit] 	at junit.framework.TestCase.runBare(TestCase.java:140)
    [junit] 	at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit] 	at junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit] 	at junit.framework.TestResult.run(TestResult.java:109)
    [junit] 	at junit.framework.TestCase.run(TestCase.java:131)
    [junit] 	at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit] 	at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409)


Thanks,
Otis

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message