Saturday, August 1, 2009

JavaScript dev tools

Few months ago i started to work on ASP.NET project with very advanced UI part. Of course there were a lot logic written on Javascript : AJAX, UI templates, Animation and other sweety things. Day by Day count of JS code lines grows and grows, and this was very painfull when someone makes error in JSON syntax for example. Whole solution breaks at one...

We needed tools to discover bugs in JavaScript at early stages.

First of all we found great tool - JsLint for VS http://jslint.codeplex.com/. Such a great thing! It can check JS syntax like compiler for c# does - at a compile time.

Secondly we found test runner for Javascript: JsTestDriver - http://code.google.com/p/js-test-driver/. This runner can be utilized under command line and execute all tests under set of browsers. It can be easily integrated in Visual Studio and into continuous integration build scripts. I wish to thank JsTestDriver dev team - great work guys!!!


0 comments: