Nanometer Process Machine
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    hifive-tappublic

    Hi-Five: TAP reporter

    Dependencies Status NPM version unstable

    browser support

    TAP reporter for Hi-Five.

    Example

    You pass the hifive-tap library as your reporter:

    var hifive  = require('hifive')
    var alright = require('alright')
     
    var tests = spec 'Your thing' {
      it 'Should do X' {
        f(x) => g(x)
      }
    }
     
    hifive.runWithDefaults([tests], require('hifive-tap')())
          .fork(function(error) { throw error }
               ,function(report){ if (report.all().length === 0) process.exit(1) })

    And get back TAP output!

    TAP version 13
    ok 1 Your thing Should do X
     
    1..1
    # Tests ran: 1 (1ms)
    # Passed:    1
    # Failed:    0

    Installing

    Just grab it from NPM:

    $ npm install hifive-tap
    

    Licence

    Copyright (c) 2013—2014 Quildreen Motta.

    Released under the MIT licence.

    install

    npm i hifive-tap

    Downloadsweekly downloads

    5

    version

    0.3.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar