[Zope-PAS] Re: Test layers for pastc

Ross Patterson me at rpatterson.net
Mon Nov 19 16:47:25 EST 2007


Tres Seaver <tseaver at palladion.com> writes:

> Ross Patterson wrote:
>
>> I'd love to convert PAS's tests to layers for test setUp and tearDown.
>> Any objections?
>
> Layers are all about sharing setup across a set of tests, which means
> they risk breaking test isolation.  I normally don't use layers for
> anything which is a pure "unit test," but can see the point for
> "function" or "integration" tests.
>
> Are there a specific set of tests you have in mind which have
> significant setup / teardown costs?

Well I also find that layers make factoring and re-using setup much
easier, so that was my motivation.  If that's an abuse of the intentions
of layers, then nevermind.  :)

Ross



More information about the Zope-PAS mailing list