Try to display informations about a layer if its setup has failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.testrunner |
Fix Released
|
Undecided
|
Tres Seaver |
Bug Description
If a layer fails to execute, zope.testrunner displays in its summary some not very interesting messages:
Tests with errors:
runTest (zope.testrunne
runTest (zope.testrunne
runTest (zope.testrunne
Total: ...
I made a patch to allow the SetUpLayerFailure to display something more useful, if the underlying layer supports it. It now calls the _str__ method of the layer object which has failed, which produces something like this:
Tests with errors:
Layer: some.tests.layer1
Total: ...
I also plan to make a patch on zope.app.testing's functional ZCML layer to display the name of the ZCML file of the layer in its __str__, in order to have something like:
Tests with errors:
Layer: /foo/bar/
Layer: /flip/flap/
Total: ...
Changed in zope.testrunner: | |
status: | Fix Committed → Fix Released |
This patch looks very reasonable.