Reputation: 1231
I want to start unit testing my javascript files as part of my build process in an MVC application I am building using jquery and jqueryUI.
I know how to use qunit and jsunit but I want to try and get VS to run these tests and integrate the results into my build process.
Has anyone got any ideas on where to begin with this? General pointers on where to begin would be as useful as solutions.
Upvotes: 5
Views: 463
Reputation: 1231
the build task suggested by mgroves worked however it only unit tested the functions and not the javascript events.
I discovered Watin pronounced "What-In". This allows you to fully control web browser and interact with the loaded web pages. IT's early days yet but I think this is a very useful way forward.
Upvotes: 1
Reputation: 26096
Take a lookt at JSUnit MSBuild task. I'm sure there's something similar for qunit, JSSpec, etc.
Upvotes: 5