Collecting code coverage for executable scripts in Node.js is tricky. I’ve ran into this problem a handful of times at Yahoo, so I published a module that mocks stdin, stdout, and stderr and my experience using it in this post for Yahoo Engineering’s tumblr.
Code coverage for executable Node.js scripts
Join My Newsletter
Get monthly updates about what I share here on my website.
One response to “Code coverage for executable Node.js scripts”
@reid Awesome post on Yahoo Engineering about node.js executable code coverage! I am totally using that pattern as soon as I can.