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.
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.