# tap-that-html

> TAP to HTML reporter.

Latest version **1.0.1** (published 2017-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install tap-that-html
pnpm add tap-that-html
yarn add tap-that-html
bun add tap-that-html
```

Provides the command `tap-that-html`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-02-14 |
| First published | 2017-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Oskar Cieslik |
| Maintainers | rpunkfu |

## Links

- npm: https://www.npmjs.com/package/tap-that-html
- Repository: https://github.com/rpunkfu/tap-that-html
- Homepage: https://github.com/rpunkfu/tap-that-html#readme
- Issues: https://github.com/rpunkfu/tap-that-html/issues
- npm.io page: https://npm.io/package/tap-that-html

## Dependencies (4)

- [tap-out](https://npm.io/package/tap-out.md) 1.4.2
- [get-stdin](https://npm.io/package/get-stdin.md) 5.0.1
- [strip-ansi](https://npm.io/package/strip-ansi.md) 3.0.1
- [string-to-stream](https://npm.io/package/string-to-stream.md) 1.1.0

## Recent versions

- 1.0.1 (latest) — 2017-02-14
- 1.0.0 — 2017-02-14

## README

# tap-that-html

TAP to HTML formatter.

## Installation

~~~ shell
$ yarn global add tap-that-html
~~~

## Usage

~~~ shell
$ ava --tap | tap-that-html
~~~

## Example

TAP Output:
~~~ text
TAP version 13

ok 1 Dog has a name.
ok 2 Dog can bark.
not ok 3 Dog can meow.
  ---
    operator: ===
    expected: true
    actual: false
  ...
ok 4 Dog can fetch.
not ok 5 Dog can fly.
  ---
    operator: ===
    expected: true
    actual: false
  ...

1..5
# tests 5
# pass  3
# fail  2
~~~

HTML Output:
~~~ html
<html>
	<head>
		<title>Tap That HTML</title>
		<link rel="stylesheet" href=".../normalize.min.css">
		<style>
			html {
				font-size: 16px;
				font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
			}

			body {
				padding: 24px 48px;
			}

			.summary h4 {
				margin: 0;
			}

			.summary h4:nth-child(n + 2) {
				margin-top: 8px;
			}

			.section:nth-child(n + 2) {
				margin-top: 12px;
			}

			.result {
				color: #495057;
				padding-top: 12px;
			}

			.result .number {
				color: #adb5bd;
			}

			.result .status {
				font-weight: bold;
			}

			.result.pass .status {
				color: #94d82d;
			}

			.result.fail .status {
				color: #ff8787;
			}

			.fail .description {
				color: #ff6b6b;
			}

			.description {
				padding: 12px 16px 0;
			}

			.description .error-detail:nth-child(n + 2) {
				padding-top: 4px;
			}
		</style>
  </head>
  <body>
		<div class="section summary">
			<h4> Tests: 5 </h4>
			<h4> Passed: 3 </h4>
			<h4> Failed: 2 </h4>
		</div>
    <div class="section report">
			<div class="result pass">
				<span class="number">1:</span> <span class="status"> OK </span> - Dog has a name.
			</div> 
			<div class="result pass">
				<span class="number">2:</span> <span class="status"> OK </span> - Dog can bark.
			</div> 
			<div class="result fail">
				<span class="number">3:</span> <span class="status"> FAIL </span> - Dog can meow.
				<div class="description">
					<div class="error-detail"> - operator: === </div>
					<div class="error-detail"> - expected: true </div>
					<div class="error-detail"> - actual: false </div>
				</div>
			</div>
			<div class="result pass">
				<span class="number">4:</span> <span class="status"> OK </span> - Dog can fetch.
			</div> 
			<div class="result fail">
				<span class="number">5:</span> <span class="status"> FAIL </span> - Dog can fly.
				<div class="description">
					<div class="error-detail"> - operator: === </div>
					<div class="error-detail"> - expected: true </div>
					<div class="error-detail"> - actual: false </div>
				</div>
			</div>
    </div>
	</body>
</html>
~~~

In Browser:
![](https://cl.ly/1L0S2I2B1K12/Image%202017-02-14%20at%2011.04.18%20PM.png)

## License
The MIT License (MIT)
Copyright (c) 2017 Oskar Cieslik

---
_Source: https://npm.io/package/tap-that-html · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
