5

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.

2 Answers 2

5

Take a lookt at JSUnit MSBuild task. I'm sure there's something similar for qunit, JSSpec, etc.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

1 Comment

some might not consider Watin tests to be "unit" tests, but yeah Watin is cool :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.