On 14/12/09 6:03, René Pijlman wrote:

But is there an agreed-upon way to add unit tests to Javascript code of
products in the Collective? Tests that can be executed by a
non-interactive / command line Javascript interpreter as part of the
automated testing procedures?

I thought we had some JS tests for some of the jQuery refactoring, but I must say I can't remember where exactly.

Martin's testing tutorial covers only Python code and Python doctests:
http://plone.org/documentation/kb/testing
And zope.testrecorder seems overly complex, for unit testing a pure
function with two string parameters in and one string result out.

It also isn't JS aware so you can't test JS with it.

This particular bug probably needs to be fixed in upstream TinyMCE, but
I'm still curious how this is done in the Plone world. Also, if
possible, I'd like to add unit tests to Products.TinyMCE to catch
regression bugs in upstream TinyMCE.

I think that'd be a good idea.

Martin


--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to