#9 Make Reporters fail when severe errors occur

open
nobody
None
5
2006-03-27
2006-03-27
No

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

Discussion

  • Sujit Pal

    Sujit Pal - 2006-04-05

    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!

     
  • Andreas Kutschera

    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

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks