Advanced JavaScript Unit Testing
Last week analytics team has participated in “Israel JavaScript Conference” organized by E4D.
One of the interesting lectures was the one talking about how (and why) we should test our UI code.
Three tools were presented: Qunit, which provides in-browser testing, JSTestDriver, to perform headless tests (tests without a GUI), and Sinon.JS, a tool for stubbing & mocking JS.
All those tools are fully integrated with visual studio, and meant to be used as a part of a CI (Continuous Integration) process. For example, we in analytics use Team City as a build server. One of the tools above, JS Test Driver, can be integrated into Team City, see how.
Written by Yehuda Zargarov
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Related Tags
#javascript
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#