[squeak-dev] The Inbox: SUnit-cmm.90.mcz

Colin Putney colin at wiresong.com
Mon Jan 7 19:34:01 UTC 2013


On Fri, Jan 4, 2013 at 4:38 PM, Chris Muller <asqueaker at gmail.com> wrote:

> I need to set up various special state on all tests of a specialized
> Suite during initialization of the Suite.  But after creating the
> tests, SUnit then promptly throws them all away which is not only
> wasteful it loses all of my needed additional-state).
>
> setUp and tearDown are intended to, well, set up and tear down any
> test.  Any test that cannot "run again" is broken because it means its
> setUp and tearDown methods don't do the job they're supposed to.
>
> If no objections, I will push this to trunk and delete the
> #testRanOnlyOnce test.
>

I don't know the details of your use case, but isn't this what
TestResources are for? Why are you customizing the initialization of a
Suite?

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130107/e2d7a144/attachment.htm


More information about the Squeak-dev mailing list