grunt-node-tap

A Grunt task to run node-tap tests and read their output.

Grunt task to run node-tap tests and read their output.

grunt.initConfig({
    node_tap: {
      default_options: {
          options: {
              outputType: 'failures', // tap, failures, stats 
              outputTo: 'console' // or file 
              // outputFilePath: '/tmp/out.log' // path for output file,  
              // only makes sense with outputTo 'file' 
          },
          files: {
              'tests': ['./test/data/*.js']
          }
      }
    }
})

This plugin requires Grunt ~0.4.1

npm install grunt-node-tap --save-dev

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-node-tap');

Specifies the type of output, 'failures', 'stats', or 'tap' (default is 'failures'), the screenshots below might help.

Where to write output, the 'console' or a 'file'. Defaults to 'console'.

Path to output file, this defaults to null and only makes sense if outputTo is set to 'file'

I imagine an outputType of 'tap' with an outputTo of 'file' might make this work with CI software.

Here's a list, thanks for your help!