What to use for JavaScript unit testing?


What is the best JavaScript unit test tool, (preferably one that works on Windows, so not Buster)?

Answer this Question


3 total
Vote Up (16)

You might want to give JSTest.NET or js-test-driver (although it hasn't been updated for a while) a try.

Vote Up (12)

See this list:

JavaScript Testing Tools

"While testing a simple JavaScript is relatively straightforward, testing a complex JavaScript such as a library like Jquery really requires the use of a test suite. Of course you don't necessarily need to develop your own test suite because there are already quite a few around.

The following are a few that I found that look like they may or may not be useful for testing your scripts."

Christopher Nerney
Vote Up (12)


IBM's developerWorks site has an article that features three tools for unit testing JavaScript -- QUnit, YUI Test and JSTestDriver. The article includes a rundown of how to use each tool, along with code examples. That might help you decide which (if any) are best for your purposes.



Ask a question

Join Now or Sign In to ask a question.
Devops could be the latest and greatest buzzword, but it could also mean big and important changes - for the better- at many organizations in how applications are built and deployed.
Only six weeks after its release, Apple’s new programming language appears to already be on its way to replacing Objective-C
Beginning this fall, French primary school students will have the option of learning computer science
The recent release of Ubuntu 14.04 Long Term Support/LTS (Trusty Tahr) proves to us once again that it doesn't matter if you're Oracle, Microsoft, or Canonical: Bringing a fleet of products into new release revision synch is tough.
A new GitHub repo is collecting the life lessons that one can learn from programming
A new study finds that most top universities are now using Python to introduce students to programming
Python has surpassed Java as the top language used to introduce U.S. students to programming and computer science, according to a recent survey posted by the Association for Computing Machinery (ACM).
A non-programming profession which writes a lot of code looks at which languages can solve its problems the fastest
Microsoft's messy mobile strategy and incompatible platforms have frustrated would-be app developers. Can Universal Apps stop the rot?
One veteran shares his tale of being recognized for using his coding skills to make his military unit more efficient