Subunit output doesn't handle doctest correctly
Bug #707015 reported by
Thomas Herve
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.testing |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.testrunner |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When using the --subunit option of the zope testrunner, I realized that my number of tests dropped down. In the subunit output, I only have that for one doctest file:
test: README_txt
successful: README_txt
The "normal" runner reports one test count for each assertion, instead of one for the whole file. Furthermore, the fact that the file is not prefixed makes all the doctests look the same in the output.
To post a comment you must log in.
Actually, the bug is that DocTestCase.id() returns unhelpful information. If we change zope.testing to use str(test), then all of the real unit tests will have bad ids. Perhaps we can do a type-based check to work around the doctest defect.