[Windmill-dev] JS test suite or test setup/teardown

Travis Vachon travis at osafoundation.org
Tue Dec 11 14:43:35 PST 2007


>
>
> That's all I really have to say about setup/teardown and  
> dependencies. I do want to reiterate my strong opposition to an  
> option that runs setup always or once, setup should only be run once  
> for the existing session no matter what.


+1

I think that what Matthew is looking for (sharing initialization code)  
is better handled by a dependency system.

The rest of this sounds like it would fit the bill very well.

As far as naming schemes go I'm partial to:

testModule.setup()
testModule.test_a()
testModule.test_b()
testModule.teardown()

-Travis



More information about the Windmill-dev mailing list