Count test import errors as errors

Bug #1026576 reported by Thomas Lotze
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.testrunner
Fix Released
Undecided
Unassigned

Bug Description

If a test module cannot be imported for some reason, a traceback is printed to the console but the error counter is not affected. Given enough test output for the traceback to scroll out of view before the test suite finishes, the user ends up seeing an all-green result and needs to remember to scroll the terminal to make sure that no import error was printed earlier. Test-module import errors should really be counted as test errors.

Revision history for this message
Brian Sutherland (jinty) wrote : Re: [Bug 1026576] [NEW] Count test import errors as errors

On Thu, Jul 19, 2012 at 11:43:56AM -0000, Thomas Lotze wrote:
> If a test module cannot be imported for some reason, a traceback is
> printed to the console but the error counter is not affected. Given
> enough test output for the traceback to scroll out of view before the
> test suite finishes, the user ends up seeing an all-green result and
> needs to remember to scroll the terminal to make sure that no import
> error was printed earlier. Test-module import errors should really be
> counted as test errors.

+1

This has also happened to me often enough.

--
Brian Sutherland

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

Fixed in commit 8f6edba

Changed in zope.testrunner:
status: New → In Progress
assignee: nobody → Marius Gedminas (mgedmin)
status: In Progress → Fix Committed
Revision history for this message
Marius Gedminas (mgedmin) wrote :

Fixed in zope.testrunner 4.4.0.

Changed in zope.testrunner:
assignee: Marius Gedminas (mgedmin) → nobody
status: Fix Committed → Fix Released
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.