hath-report-spec

0.1.0 • Public • Published

hath-reporter-spec

Build Status

Outputs a hath report in spec like format, e.g.

 Hath Report Spec:
  ✓ Test something: I love it when a plan comes together
  ✖ Test something: You lose sucker!

Summary
-------
PASS: 1
FAIL: 1

Usage

var Hath = require('hath')
var report = require('hath-report-spec')
 
function testSomething(t, done) {
  t.assert(true, 'I love it when a plan comes together')
  t.assert(false, 'You lose sucker!')
  done()
}
 
module.exports = Hath.suite('Hath Report Spec', [
  testSomething
])
 
if (module === require.main) {
  module.exports(new Hath(report))
}

Readme

Keywords

Package Sidebar

Install

npm i hath-report-spec

Weekly Downloads

2

Version

0.1.0

License

ISC

Last publish

Collaborators

  • guidesmiths