hifive-tap
TAP reporter for Hi-Five.
Last updated 6 years ago by killdream .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hifive-tap 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.3.0                                ...           latest (6 years ago)

5 Versions

  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |