Add SpeckJS formatted comments to your file yourFile.js function sum(a, b) { return a + b; };

Pick your favorite tool npm

grunt

gulp

atom

Install the npm module From within your project directory run: ~ $

Hello World Require speckjs from within your project files:

Install the grunt plugin From within your project directory run: ~ $

Set up your Gruntfile.js Once the plugin has been installed, it may be enabled inside your Gruntfile so: Gruntfile.js and configured as: Gruntfile.js

Run grunt ~ $

Install the gulp plugin From within your project directory run: ~ $

Set up your gulpfile.js Once the plugin has been installed, it may be enabled inside your gulpfile so: gulpfile.js and configured as: gulpfile.js

Run gulp ~ $

…and Boom! This example shows a Tape test. SpeckJS compiles tests for Tape, Jasmine, and Mocha/Chai. Check the documentation on github.com/speckjs/speckjs for more information

Download Atom Atom is a hackable text editor for the 21st Century Download Atom

Install the atom plugin