Monday, June 13, 2011

node.js testing frameworks

There are so many testing frameworks for node.js, start to evaluate some most mentioned/used ones. Criteria that I am looking for:


  1. easy to understand concept and constructs
  2. nice support for async calls and flow control
  3. easy integration with CI tools such as Hudson
  4. code coverage report
  5. mocks and stubs


Among those, I like Jasimine most, it is easy to understand and has rich feature set. The only feature missing is lack of code coverage report. jasimine-reporters supports output of JUnit format unit test results. jasimine-node brings Jasimine to node.js. You can check out "Testing Backbone applications with Jasimine and Sinon" for a practical example.

No comments:

Post a Comment