Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guidesmiths/hath-report-spec
Outputs a hath summary in spec like format
https://github.com/guidesmiths/hath-report-spec
Last synced: 22 days ago
JSON representation
Outputs a hath summary in spec like format
- Host: GitHub
- URL: https://github.com/guidesmiths/hath-report-spec
- Owner: guidesmiths
- Created: 2016-09-28T20:38:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-12T22:58:27.000Z (over 3 years ago)
- Last Synced: 2024-12-18T09:45:22.063Z (29 days ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 14
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hath-reporter-spec
[![Build Status](https://img.shields.io/travis/guidesmiths/hath-report-spec/master.svg)](https://travis-ci.org/guidesmiths/hath-report-spec)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
```js
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))
}
```