Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timoxley/tapef
Tape API with Mocha's error output. A hack.
https://github.com/timoxley/tapef
Last synced: about 2 months ago
JSON representation
Tape API with Mocha's error output. A hack.
- Host: GitHub
- URL: https://github.com/timoxley/tapef
- Owner: timoxley
- License: mit
- Created: 2015-03-25T03:41:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-04T00:57:31.000Z (about 9 years ago)
- Last Synced: 2024-04-27T02:26:01.386Z (5 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# tapef
Tape bred uncermoniously with Mocha. Literally Mocha's reporter hacked into Tape.
The way I use this is to drop it in temporarily as a debugging tool when comparing big objects or strings, then switch back to vanilla Tape when I'm done.
## Caveats
Doesn't play well alongside other Tape tests just yet.
## Usage
Just replace `require('tape')` with `require('tapef')`.
```js
var test = require('tapef')// Exactly the same api as Tape.
test('equal numbers', function(t) {
t.equal(1, 2)
t.end()
})test('equal string', function(t) {
var a = 'apple'
var b = 'banana'
t.equal(a, b)
t.end()
})// etc
```
## Output
![image](https://cloud.githubusercontent.com/assets/43438/6817394/d02a6796-d2da-11e4-8f41-3c3e1ba88f7a.png)
![image](https://cloud.githubusercontent.com/assets/43438/6817861/af4dc03e-d2e1-11e4-8b2b-fcb6999b7857.png)
![image](https://cloud.githubusercontent.com/assets/43438/6817937/be1b7a9c-d2e2-11e4-9fb5-db39bae7bfa4.png)
## License
MIT