Reading this prompted a question -- is anyone out there actually writing their JavaScript with unit tests? You are? Great! Now please tell the rest of us how exactly are you doing it and how has it worked out for you.
TrackBacks[0]
Comments[9]
Posted by lasse on February 19, 2005 12:01:16 AM EET
Reply |
Permalink
Re: JavaScript unit testing in the real world
I won't tell!!
Comment from Anonymous on May 9, 2005 6:17:52 PM EEST
jsunit is a javascript unit test framework. But it comes up short in some areas.
Comment from Corey on May 16, 2005 6:34:35 PM EEST
I was aware of jsUnit. What I'm interested to know is how are people using it if they're using it. Personally, I have managed to avoid JavaScript so far as to not feeling the need to have tests. I'm just wondering whether someone working with more JavaScript-ridden applications is actually testing the JavaScript functions with unit tests (not functional tests but unit tests just for a single JavaScript function and so forth).
Comment from Lasse on May 16, 2005 7:03:03 PM EEST
Try LittleUnit.
http://javascript.gleepglop.com/littleUnit/testRunner.html
Comment from Corey on May 21, 2005 12:37:51 AM EEST
Guys, thanks for the tips but I'm really not looking for a tool. I'm just interested in knowing whether there's someone out there that's actually using these tools...
Comment from Lasse on May 21, 2005 4:00:04 AM EEST
I'm using LittleUnit a lot. It is really easy to use and helps A TON when testing your javascript code across different browsers.
Comment from Corey on May 27, 2005 5:40:42 AM EEST
JSUnit looks overy complicated for my use. (I've never used JUnit). I would download LittleUnit but I'm getting timeouts and 404 not found wherever I look for it.
Are there any download sources other than the link above?
Comment from Anonymous on March 9, 2006 7:10:23 PM EET
Two links, but only one works:
[ok]
http://gleepglop.com/javascripts/littleunit/
[404]
http://javascript.gleepglop.com/littleUnit/
Good luck!
James
Comment from James on April 5, 2006 3:50:37 AM EEST
I'm looking at using JSUnit but was hoping for some MSBuild tasks to accompany it, unfortunately it's all geared towards ANT; which doesn't fit into our current build.
So in that sense, I'll still use it, but will need to extend it.
Comment from Anonymous on August 1, 2008 12:01:40 AM EEST
TrackBack to http://radio.javaranch.com/lasse/addTrackBack.action?entry=1108764076000







