Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

What do you use for JavaScript testing both server-side and client-side?

share|improve this question

migrated from stackoverflow.com Feb 23 '11 at 18:19

8 Answers

For unit Test : QUnit , For server side and simulated browser environment Envjs.

Now i am studying on FuncUnit of JavascripMVC, how to implement it in my project.

share|improve this answer

Nodeunit, iit's really easy to get running under both Node.js and in Browsers.

share|improve this answer

MooTools uses Jasmine.

Jasmine is a behavior-driven development framework for testing your JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.

share|improve this answer

I have used JSUnit (briefly), the link is a quick guide.

It has been a while since I last used it so hope this helps.

share|improve this answer
I think JSUnit has been abandoned for some years, though I might be wrong ont hat one. – Zachary K Feb 23 '11 at 20:28
@Zachary K - I haven't used it for ages as I said you you maybe right. Shame if it is as I did like using it. – Digger Feb 23 '11 at 20:39

We just had a presentation at the office on this. They used coffeescript for the javascript and jasmine for a test runner.

share|improve this answer

I've found gently really useful for mocking and stubbing, and generally just keeping my tests clean, under node.

share|improve this answer

For functionality testing Selenium can be a good choice.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.