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

Matthew Eernisse mde at osafoundation.org
Tue Dec 18 12:42:39 PST 2007


Adam, is this something you know enough about on both sides to be able 
to hack in easily, or is it something we need to hash out together?


M.

Mikeal Rogers wrote:
> 
> On Dec 18, 2007, at December 18, 200712:30 PM, Matthew Eernisse wrote:
> 
>> That all looks kosher to me. It would be super-cool to get this 
>> implemented so we can do more with the JS tests. I've got the 
>> auto-parsing and setup/teardown, seems like this is all that's left.
>>
>> I didn't know there was a UUID for the test run. Should we be doing 
>> something with that in the JS tests? Or are we, and I just don't know it?
> 
> Forgot to explain that.
> 
> We also need a single call to the Service as the end of your test run. 
> It should give the total pass/fail and any other information about the 
> run and also return the uuid for the test run.
> 
> If the test run fails, or breaks with an error, we also need to make a 
> call to the server with this information and give that uuid.
> 
> This is so that we can add the js tests in to larger test runs with 
> python and json tests.
> 
> -Mikeal
> 
>>
>>
>>
>> M.
>>
>> Mikeal Rogers wrote:
>>> Ok, here is how I think things will work on my end.
>>> $ windmill jsdir=test_js jsfilter=ns:blah
>>> or
>>> $ windmill jsdir=test_js jsfilter=method:blah
>>> The jsdir is mounted and recursively parsed for .js files, the filter 
>>> and all the .js urls are sent in a single callback to the IDE along 
>>> with a UUID for the test run.
>>> {
>>> 'method':'commands.jsTest',
>>> 'params':{'files': [ ---list of urls---],
>>>                 'filter': "ns:blah",
>>>                 'uuid': "sadf-asdf-asdf-asdf-asdf" }
>>> }
>>> If it makes things easier, we can rename the uuid option as to not 
>>> confuse that uuid param to the root level uuid param for all RPC 
>>> calls between the Service and IDE.
>>> Thoughts?
>>> -Mikeal
>>> _______________________________________________
>>> Windmill-dev mailing list
>>> Windmill-dev at osafoundation.org
>>> http://lists.osafoundation.org/mailman/listinfo/windmill-dev
>>
>> _______________________________________________
>> Windmill-dev mailing list
>> Windmill-dev at osafoundation.org
>> http://lists.osafoundation.org/mailman/listinfo/windmill-dev
> 



More information about the Windmill-dev mailing list