# test-result

> A simple module to mark the result of your tests

Latest version **2.0.0** (published 2015-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install test-result
pnpm add test-result
yarn add test-result
bun add test-result
```

## 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 | 2.0.0 |
| Published | 2015-02-11 |
| First published | 2015-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ForbesLindesay |
| Maintainers | forbeslindesay |

## Links

- npm: https://www.npmjs.com/package/test-result
- Repository: https://github.com/ForbesLindesay/test-result
- Issues: https://github.com/ForbesLindesay/test-result/issues
- npm.io page: https://npm.io/package/test-result

## Recent versions

- 2.0.0 (latest) — 2015-02-11
- 1.0.1 — 2015-02-11
- 1.0.0 — 2015-02-11

## README

# test-result

A simple module to mark the result of your tests

[![Build Status](https://img.shields.io/travis/ForbesLindesay/test-result/master.svg)](https://travis-ci.org/ForbesLindesay/test-result)
[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/test-result.svg)](https://gemnasium.com/ForbesLindesay/test-result)
[![NPM version](https://img.shields.io/npm/v/test-result.svg)](https://www.npmjs.org/package/test-result)

## Installation

    npm install test-result

## Usage

```js
var result = require('test-result');

// if tests passed
result.pass('the best tests');
// if tests failed
result.fail('the worst tests');
```

## On the server

It will log a message for test pass or fail.  It will also `process.exit(1)` if the tests failed.

## On the client

It will log a message for test pass or fail if the browser has console support.  It will also count the number of completed, passed and failed tests in three counters, initialized as:

```js
window.TESTS_COMPLETE = 0;
window.TESTS_PASSED = 0;
window.TESTS_FAILED = 0;
```

## License

  MIT

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