Re: saving state between fixtures

Ward Cunningham <[email protected]> Mon, 18 Aug 2003 10:54:56 -0700
Newsgroups gmane.comp.programming.tools.fit.devel
Message-ID <[email protected]>
On Monday, August 18, 2003, at 09:52  AM, Charlie Poole wrote:

> We could emulate that by giving Fixture a static hashtable to hold
> test-specific state.

Fixture already holds such a hash, called summary, which it is careful 
to pass to child fixtures, but not to new top level fixtures as created 
by, for example, eg.AllFiles. This seems to be exactly the right 
lifetime for cross-table state.

As an added feature, all such objects are reported in the fit.Summary, 
if present.


--
Ward Cunningham
503-245-5633 v	mailto:[email protected]
503-246-5587 f	http://c2.com