On 11-08-01 05:56 AM, Gavin Panella wrote:
> If you're writing a JavaScript test module, you'll be familiar with
> putting this at the end of your YUI().use(...) block:
> 
>   Y.lp.testing.Runner.run(suite);
> 
> That's neat and concise but it causes a problem: there's no way to
> just import the test module.
> 
> I've been trying out an alternative approach (test *modules* that
> don't care about the runner). It's already in the tree so you could
> use it too. If no one objects I'll convert existing tests later in the
> week or next, so read the following page if this interests you:
> 
> https://dev.launchpad.net/GavinPanella/ImportingJavaScriptTestModules
> 


I was wondering why we want to do this, but the wiki page does an
excellent job to answer my question!

Thanks for that!

But does this mean that writing the tests in a module will be bundled in
the launchpad.js file? Are we shipping useless test code to our users?



-- 
Francis J. Lacoste
francis.laco...@canonical.com

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : launchpad-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to