Tests in Layers inheriting from UnitTestLayer are not executed as unit tests
Bug #402086 reported by
Christian Theune
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.testing |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
It is questionable (but should be discussed) whether this scenario is by accident or on purpose.
summary: |
- Layer inheriting from UnitTest are not executed as unit tests + Tests in Layers inheriting from UnitTestLayer are not executed as unit + tests |
To post a comment you must log in.
AFAICT, it should be an error to ever mix layers into unit tests at all:
the whole distinction between "unit" and "functional" tests is that unit
tests don't need (or want) the shared setup provided by layers.
I've heard an argument that layers are useful for "grouping" tests together
logically, orthagonally to the main purpose of layers, which is to drive the
shared setup machinery. If this argument ever had much weight, I think
it does no longer, now that we have exploded the monolithic Zope3 tree
into smaller, more focused projects.
I'm marking this as incomplete because I think it should be "wontfix",
but don't want to do that abruptly: those who are sure that I'm wrong
get sixty days to reset the status.
I could easily be persuaded that the whole existence of UnitTestLayer
is an "attractive nuisance."