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
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
Log in to post a comment.