Blog Archives

JavaScript coverage with Istanbul and Coveralls via Travis CI

Components used: Mocha, Istanbul, Coveralls, Travis, node coveralls, make Since then I’ve been looking for alternatives to using JS Coverage for doing coverage instrumentation. There are two main issues with it: It’s C component that needs to be (sort of

Tagged with: , , , , ,
Posted in git, github, JavaScript, nodejs, TDD

Integration testing node.js web apps with JavaScript

These are some loose guidelines for integration testing a web app in JavaScript. Ideal if you need to test an ExpressJS app or any kind of web service. The key issue is being able to stop and start the service

Tagged with: , , ,
Posted in Uncategorized

Automated JavaScript testing with Mocha and js-coverage for NodeJS

I used to extensively use Jamine and Jasmine-Node for my JavaScript testing. While jasmine is great I’ve recently moved over to Mocha for several reasons but primarily because it supports coverage reporting. Here are some basic steps to get going.

Tagged with:
Posted in JavaScript, nodejs, programming, TDD, testing