Count test import errors as errors
Bug #1026576 reported by
Thomas Lotze
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.
To post a comment you must log in.
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