QUnit is an awesome unit testing framework for JavaScript that is written by the jQuery team for unit testing jQuery.
This post describes a package I created to be able to run QUnit testing from within any .NET testing framework, and thus also from continuous integration servers.
If you manage to achieve the difficult task of getting your JavaScript unit tests to run and return results within the context of your server-side testing framework then that is a huge win. I think it’s a win because it means you can run all of the tests for your application within the same context resulting in:
* Better efficiency for doing your testing
* More likelihood you will actually run your JavaScript unit tests regularly since it’s convenient to do so
* You get continuous integration for free if you already have a CI server set up.
That last point is important – this means you get continual regression testing of your JavaScript, and if multiple people are working on the same JavaScript then you get notification as soon as a bug is introduced as a side-effect of integrating the code.
Your new post is loading...