we're looking to do some unit testing with qUnit. we use Cruise Control for continuous integration. just curious if anyone has integrated qUnit in an automated fashion, and if so, what you did to get it all working...
does anyone have any recommendations on how to use qUnit with continuous integration, such as cruise control?
361 Views Asked by Kasey McCurdy At
2
There are 2 best solutions below
0

I set up a Jenkins CI to do this a while back, the way we did it was to write an NUnit test to run WatiN (selenium would work as well of course), that would then run the QUnit tests, with selectors to check for any errors and fail an assert for every test that failed. It's very important that you make sure you are testing in the correct browser due to differences in the javascript engines. For example, WatiN wouldn't work if you target platforms include Chrome because it can't control Chrome (last I checked).
Have you seen the open source NQUnit? I haven't tried it yet but I plan on using it in an upcoming project.