When SQLUnit encounters a severe error, e.g.
a ClassNotFoundException when trying to load
the JDBC driver, the tests fail, but the reporter
reports a success.
This patch adds to the test failure count, so
the reporters knows that the tests failed.
I tested this with the canoo test reporter and
now I get a "successful='no'" instead of a 'yes' with
the full error message.
I do not know, however, if this breaks other tests!
Specifically, since there are so many
SQLUnitExceptions,
I did assume that all of them report some kind of
test failure. If that is not so, this patch
probably won't work.
The file that needs to be patched is SQLUnit.java.
Hope this helps
Andreas
Logged In: YES
user_id=184803
I dont see a patch file attached. If you attach it, then I
can decide whether to apply or not. Thanks!
Logged In: YES
user_id=1457655
Sorry, I forgot to attach one, but this is probably
good anyway, as the patch seemed to have some side
effects. I will check to make sure that the patch works
before submitting another one.
Andreas