PDA

View Full Version : JS Unit Test Panel



Ronaldo
5 Feb 2009, 7:58 AM
Hi all,

I needed to start using unit tests in my small app, and though I like Selenium, writing (integration) tests in (javascript) code is a usable testing tool too.

So I adapted the code from Luke Bayes (http://github.com/lukebayes/another-jsunit/tree/master) (with his permission) to what you can see in the attachment.
I believe with this you can test your application components together. The code should be able to handle async calls (needed to wait for loading data for example), but I haven't checked it yet.

It's not ready yet, but if you're interested, I'll find some time to construct a demo/download page.

mystix
5 Feb 2009, 9:33 AM
woah. +1 from me.

looks like it could come in real handy. great job!

watrboy00
5 Feb 2009, 11:39 AM
+1. Looks like it could be a useful tool.

harley.333
5 Feb 2009, 1:31 PM
Please keep working on it! :)

stever
5 Feb 2009, 11:32 PM
You might look at xinc (a continuous integration server, using Ext) found here:

http://xinc.eu/

and the source code here:

http://code.google.com/p/xinc/

Looks like they could work together.

I don't use xinc, but do watch its progress...

Scorpie
5 Feb 2009, 11:46 PM
Very good!

Ronaldo
6 Feb 2009, 12:13 AM
I`m from Holland!
Lol, me too (Enschede).

Ronaldo

Ronaldo
6 Feb 2009, 12:16 AM
You might look at xinc (a continuous integration server, using Ext) found here:

http://xinc.eu/

and the source code here:

http://code.google.com/p/xinc/

Looks like they could work together.

I don't use xinc, but do watch its progress...

Thanks! I didn't know that one yet. But I assume that with a php build server, you primarily will test the php code, not the javascript components. But I'm sure you're aware of that and yes, they might play well together.

Ronaldo

Scorpie
6 Feb 2009, 12:16 AM
Lol, me too (Enschede).

Ronaldo

cool! Finally I meet a fellow-Dutchie who uses ExtJS !

Ronaldo
20 Feb 2009, 9:32 AM
Please see http://extjs.com/forum/showthread.php?t=60683 for a screencast

Ronaldo