Give more information about a ZCML layer when printing it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.app.testing |
New
|
Undecided
|
Unassigned |
Bug Description
If you run tests containing some ZCML layers and some of them fail to setup properly, zope.testrunner along with zope.app.testing's functional layer used to display something like:
Tests with errors:
runTest (zope.testrunne
runTest (zope.testrunne
runTest (zope.testrunne
Total: ...
Which is not very helpful. I proposed a patch for zope.testrunner which have been merged in r116424 (see http://
Attached to this bug report, I propose a small patch which will fit nicely with the new feature of zope.testrunner.
I'm not sure about the implementation details though: the thing I'm interested in is to have the ZCML file which failed and as such, only the __str__ has some interests. However, I don't know if it's a good idea to return the ZCML path to represent the str of a ZCMLLayer object.
So if you have better ideas for the implementation of this, feel free to change the patch.
summary: |
- Give more informations about a ZCML layer when printing it + Give more information about a ZCML layer when printing it |
With the good patch this time...