Bugs: Browse | Submit New | Admin

[#17835] Handle more exceptions

Date:
2008-02-06 19:11
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Closed
Summary:
Handle more exceptions

Detailed description
After installing Mocha, unit-tests became buggy -- if test got some exceptions, testing stopped running at all.

After some investigations, we found that Mocha handles not all exceptions handled by standard Test::Unit::TestCase.

So, standard one handles using list Test::Unit::TestCase::PASSTHROUGH_EXCEPTIONS, but Mocha handles StandardError,
ScriptError only.

So, Mocha would use the same list as standard Test::Unit::TestCase.

Patch is attached.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-02-18 21:47
Sender: James Mead

I'm closing this - assuming it's fixed - please re-open if not.

Thanks, James.
Date: 2008-02-07 01:15
Sender: James Mead

Fix applied in revision 255. Can you let me know if this solves
your problem and/or close the bug if appropriate.

Thanks.
http://blog.floehopper.org

Attached Files:

Name Description Download
fix_exceptions.diff Diff that fixes the issue Download

Changes:

Field Old Value Date By
status_idOpen2008-02-18 21:47jamesmead
close_date2008-02-18 21:472008-02-18 21:47jamesmead
File Added3320: fix_exceptions.diff2008-02-06 19:11None