JavaScript unit testing frameworks?

0 views
Skip to first unread message

David Hayes

unread,
Apr 29, 2008, 11:19:19 AM4/29/08
to Refresh...@googlegroups.com
Hello Refresh!

What do you guys use for JS unit testing? I'm hoping for something
out of browser, but if it's in-browser that's okay, too... It'd be
*really* nice if I could find something that could run as part of a
build process, i.e. the build fails if the tests fail. I've seen
JSUnit (http://www.jsunit.net) but it seems a bit clunky.

I've heard of SpiderMonkey
(http://www.mozilla.org/js/spidermonkey/) for out-of-browser JS... Any
experiences, good or bad, there?

The flip side of this question would be, "What are you looking for
in JS unit testing frameworks?" (just in case I need to start writing
one... ( ; )

Thanks!
David

P.S. Intro time: Hi there, I'm David Hayes, a programmer/webguy. I've
lived in Austin for the last twelve years after moving here to go to
UT. I mostly do server-side programming at Pluck (with Alex Jones...
Hi Alex!), but I'm a user experience advocate whenever possible. I'm
an electronic musician and I'm very interested in web interaction
models, games of all kinds (especially the ARGy type),
role-playing/storytelling and, uh, yeah, that's about as nerdy as I'll
get right in this paragraph. ( =

sam foster

unread,
Apr 29, 2008, 12:07:53 PM4/29/08
to Refresh...@googlegroups.com
I use dojo's DOH. It can run in-browser, or run inside Rhino or SpiderMonkey.
There was an article recently on using it for non-dojo projects

http://www.sitepen.com/blog/2008/04/15/unit-testing-custom-code-with-the-dojo-objective-harness/

Sam

On Tue, Apr 29, 2008 at 10:19 AM, David Hayes <drh...@gmail.com> wrote:
>
> Hello Refresh!
>
> What do you guys use for JS unit testing? I'm hoping for something
> out of browser, but if it's in-browser that's okay, too... It'd be
> *really* nice if I could find something that could run as part of a
> build process, i.e. the build fails if the tests fail. I've seen
> JSUnit (http://www.jsunit.net) but it seems a bit clunky.
>
> I've heard of SpiderMonkey
> (http://www.mozilla.org/js/spidermonkey/) for out-of-browser JS... Any
> experiences, good or bad, there?
>
> The flip side of this question would be, "What are you looking for
> in JS unit testing frameworks?" (just in case I need to start writing
> one... ( ; )

dont do that!

Sam

Reply all
Reply to author
Forward
0 new messages