OutputFormatter objects should have event for layer setUp/tearDown failure

Bug #655656 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.testing
Won't Fix
Undecided
Unassigned
zope.testrunner
Invalid
Undecided
Unassigned

Bug Description

Currently, OutputFormatter and friends has methods for start_set_up, stop_set_up, start_tear_down, stop_tear_down and tear_down_not_supported. However, it doesn't have methods to handle the cases when layer set up or tear down fails.

This is particularly bad for output formatters that produce output intended for automated reading. There's no natural way to hook into layer errors and report them gracefully.

To fix this, OutputFormatter, ColorfulOutputFormatter and SubunitOutputFormatter should grow methods set_up_failed and tear_down_failed. Meanwhile, tear_down_unneeded and setup_layer in runner.py should be changed to call these new methods in the case of layer setUp/tearDown failure.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

This needs to be fixed in zope.testrunner, not zope.testing.

Changed in zope.testing:
status: New → Won't Fix
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.testrunner project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.testrunner.

Changed in zope.testrunner:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.