Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Experience-Monks/tap-dev-tool
prettifies TAP in the browser's console
https://github.com/Experience-Monks/tap-dev-tool
Last synced: 3 months ago
JSON representation
prettifies TAP in the browser's console
- Host: GitHub
- URL: https://github.com/Experience-Monks/tap-dev-tool
- Owner: Experience-Monks
- License: mit
- Created: 2015-06-02T15:29:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T15:37:07.000Z (over 9 years ago)
- Last Synced: 2024-07-29T00:56:33.136Z (3 months ago)
- Language: JavaScript
- Size: 285 KB
- Stars: 29
- Watchers: 22
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-tap - tap-dev-tool - Prettify TAP in the browser console. (Tools / JavaScript)
README
# tap-dev-tool
[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)
[(Click for a live demo)](https://jam3.github.io/tap-dev-tool/demo/)
Prettify TAP output in Chrome/FireFox DevTools console. Works best with [tape](https://www.npmjs.com/package/tape).
![fail](http://i.imgur.com/xwYZUc7.png)
Comes in the form of a Browserify plugin, so you don't need to change your source code during development. PRs for other integrations (Babel, Webpack) welcome.
## Install
You can install with [npm](https://www.npmjs.com/):
```sh
npm install tap-dev-tool --save-dev
```## Usage
[![NPM](https://nodei.co/npm/tap-dev-tool.png)](https://www.npmjs.com/package/tap-dev-tool)
### browserify
The preferred way of using this is with a plugin during development. After installing, you can use it with browserify like this:
```sh
browserify index.js --plugin tap-dev-tool > bundle.js
```Works well during development with [watchify](https://github.com/substack/watchify) and [budo](https://github.com/mattdesl/budo).
### require hook
If you don't want to use the plugin, you can require the tool somewhere at the start of your application.
```js
require('tap-dev-tool/register')var test = require('tape')
test('should do something', function (t) {
...
})
```## See Also
- [budo](https://github.com/mattdesl/budo) - fast browser development
- [hihat](https://github.com/Jam3/hihat) - launches DevTools in a new process
- [tap-browser-el](https://www.npmjs.com/package/tap-browser-el)
- [tap-browser-color](https://www.npmjs.com/package/tap-browser-color)
- [tap-console-parser](https://www.npmjs.com/package/tap-console-parser)## License
MIT, see [LICENSE.md](http://github.com/Jam3/tap-dev-tool/blob/master/LICENSE.md) for details.