← Back to team overview

launchpad-dev team mailing list archive

Importing JavaScript test modules (no need to set up the Runner)

 

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

Gavin.


Follow ups