Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joeybaker/tap-simple

Simple tap formatter: does not clutter output with successes and shows a diff of actual vs. expected.
https://github.com/joeybaker/tap-simple

Last synced: 22 days ago
JSON representation

Simple tap formatter: does not clutter output with successes and shows a diff of actual vs. expected.

Awesome Lists containing this project

README

        

# tap-simple [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image]

Simple tap formatter: does not clutter output with successes and shows a diff of actual vs. expected.

![tap-simple](https://cloudup.com/c53SAyv9vrs+)

**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Install](#install)
- [Usage](#usage)
- [CLI](#cli)
- [Programmatic](#programmatic)
- [Tests](#tests)
- [Developing](#developing)
- [Requirements](#requirements)
- [License](#license)

## Install

```sh
npm i -g tap-simple
```

## Usage

### CLI
```sh
tape test/*test.js | tap-simple
```

### Programmatic
```js
import tapSimple from 'tap-simple'

process.stdin
.pipe(tapSimple())
.pipe(process.stdout)
```

Tap-simple is written in es6. You need to compile it if you're not in an es6 environment.

```js
require('babel/register')
var tapSimple = require('tap-simple')

process.stdin
.pipe(tapSimple())
.pipe(process.stdout)
```

## Tests
Tests are in [tape](https://github.com/substack/tape) and code coverage is run though [covert](https://github.com/substack/covert).

* `npm test` will run the tests.
* `npm run tdd` will run the tests on every file change.

## Developing
To publish, run `npm run release -- [{patch,minor,major}]`

_NOTE: you might need to `sudo ln -s /usr/local/bin/node /usr/bin/node` to ensure node is in your path for the git hooks to work_

### Requirements
* **npm > 2.0.0** So that passing args to a npm script will work. `npm i -g npm`
* **git > 1.8.3** So that `git push --follow-tags` will work. `brew install git`

## License

Artistic 2.0 © [Joey Baker](byjoeybaker.com)

Thanks to [tap-spec](https://github.com/scottcorgan/tap-spec) for the original structure and [tap-difflet](https://github.com/namuol/tap-difflet) for the original diffing algorithm.

[npm-url]: https://npmjs.org/package/tap-simple
[npm-image]: https://badge.fury.io/js/tap-simple.svg
[travis-url]: https://travis-ci.org/joeybaker/tap-simple
[travis-image]: https://travis-ci.org/joeybaker/tap-simple.svg?branch=master
[daviddm-url]: https://david-dm.org/joeybaker/tap-simple.svg?theme=shields.io
[daviddm-image]: https://david-dm.org/joeybaker/tap-simple