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

Matthew Eernisse mde at osafoundation.org
Wed Dec 19 15:51:06 PST 2007


Responses below ...

Mikeal Rogers wrote:
> Good point, could we use the filter option for that?
> 
> filter=only:setup
>           only:setup/teardown
>           only:test,ns:blah

It might make more sense to keep the two concepts separate.

The "filter" indicates *which tests* to run.

I think need another option ("only"?) to indicate *which steps in the 
test cycle* to run.

{
'method': 'commands.jsTest',
   'params': { 'filter': 'ns:test_pim.test_unsavedChanges',
     'only': 'setup,test',
     'uuid': 'foo-bar-baz-blammo' }
}

If the "only" option is omitted, it just runs setup, test, teardown, 
like normal.

Does that make sense? I think it might be a little easier for end-users 
than overloading filter.


Matthew



More information about the Windmill-dev mailing list