1.0.0 • Published 9 years ago

grunt-node-tap v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 years ago

grunt-node-tap

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

NPM

Build Status Dependency Status

Example

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']
          }
      }
    }
})

Getting Started

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');

Options

options.outputType

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

options.outputType: stats

stats outputMode

options.outputType: failures

failures outputMode

options.outputType: tap

tap outputMode

options.outputTo

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

options.outputFilePath

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

Fun note:

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

Contributors

Here's a list, thanks for your help!

1.0.0

9 years ago

0.1.62

10 years ago

0.1.61

11 years ago

0.1.60

11 years ago

0.1.58

11 years ago

0.1.57

11 years ago

0.1.56

11 years ago

0.1.55

11 years ago

0.1.54

11 years ago

0.1.53

11 years ago

0.1.52

12 years ago

0.1.51

12 years ago

0.1.50

12 years ago

0.1.49

12 years ago

0.1.48

12 years ago

0.1.46

12 years ago

0.1.45

12 years ago

0.1.44

12 years ago

0.1.43

12 years ago

0.1.42

12 years ago

0.1.41

12 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago