Count test import errors as errors

Bug #1026576 reported by Thomas Lotze on 2012-07-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.testrunner
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.

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

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
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  Edit
Everyone can see this information.

Other bug subscribers