Unit Testing

0 views
Skip to first unread message

daff

unread,
Nov 5, 2009, 5:37:34 PM11/5/09
to Prototype & script.aculo.us
Hi All,

Have been using Prototype for our Web application for some time and in
the interests of ensuring code development is as efficient and robust
as possible now wish to add unit testing to the classes and functions
currently being modified and improved as part of ongoing development.

I initially thought I could use JsUnit, but unfortunately it looks
like there is a namespace conflict with prototype, because as soon as
I include the prototype file, previously functional test break, with
fairly obvious results indicating that prototype has modified the
namespace.

I then found references in prototype discussions to a unittest.js file
and thought this might provide some means of having prototype create
and run some for of unit testing, but have been unable to find it in
the current release, I am still not sure that it is really what I am
after.

What are people using, in conjunction with prototype, to carry out
unit testing on javascript classes?

Any thoughts would be appreciated.
Reply all
Reply to author
Forward
0 new messages