JUnit unexpectingly catching Exceptions and Errors

Oddly, any exceptions and errors in my Junit tests (other then JUnit excpetions) are being catched - or in other words, the program just goes on executing. If I add a catch claus suddenly they are visible and can be thrown....

Thanx in advance for your support

Message was edited by:

lxkern

[316 byte] By [lxkerna] at [2007-11-27 4:32:33]
# 1
Support? What for? And what does "visible" mean?
CeciNEstPasUnProgrammeura at 2007-7-12 9:42:15 > top of Java-index,Java Essentials,Java Programming...
# 2

Well of course they do. Junit has to complete it's entire run, whether a test fails or not. Otherwise, if you had 4000 unit tests, and 120 of them failed and a further 200 threw exceptions, you'd only know about one failure at a time. Imagine how long it would take to fix them if you only knew about them one at a time, in a suite that took an hour and a half to run

georgemca at 2007-7-12 9:42:15 > top of Java-index,Java Essentials,Java Programming...
# 3
compuware's qa-run worked just like that george... and our tests took days to run. We just gave up after 18 months, and I guess about $500,000 in wages.The licence fee was something like $60,000. It came with a free t-shirt.
corlettka at 2007-7-12 9:42:15 > top of Java-index,Java Essentials,Java Programming...
# 4

> compuware's qa-run worked just like that george...

> and our tests took days to run. We just gave up after

> 18 months, and I guess about $500,000 in wages.

>

> The licence fee was something like $60,000. It came

> with a free t-shirt.

Jeepers. Still, good news about the t-shirt, eh!

georgemca at 2007-7-12 9:42:15 > top of Java-index,Java Essentials,Java Programming...