# mocha-broken

> Only run previously broken mocha tests

Latest version **1.0.0** (published 2014-06-14) · 0 weekly downloads

## Install

```sh
npm install mocha-broken
pnpm add mocha-broken
yarn add mocha-broken
bun add mocha-broken
```

Provides the command `mocha-broken`.

## 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.0 |
| Published | 2014-06-14 |
| First published | 2014-04-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | segment |

## Links

- npm: https://www.npmjs.com/package/mocha-broken
- Repository: https://github.com/segmentio/mocha-broken
- Issues: https://github.com/segmentio/mocha-broken/issues
- npm.io page: https://npm.io/package/mocha-broken

## Dependencies (4)

- [mocha](https://npm.io/package/mocha.md) ^1.18.2
- [minimist](https://npm.io/package/minimist.md) ^0.1.0
- [quotemeta](https://npm.io/package/quotemeta.md) 0.0.0
- [tap-parser](https://npm.io/package/tap-parser.md) ^0.5.0

## Recent versions

- 1.0.0 (latest) — 2014-06-14
- 0.2.0 — 2014-06-11
- 0.1.1 — 2014-04-18
- 0.1.0 — 2014-04-06
- 0.0.2 — 2014-04-06
- 0.0.1 — 2014-04-06
- 0.0.0 — 2014-04-06

## README

# mocha-broken

  Only run previously broken mocha tests. Really useful when individual tests
  can take a long time.

## Example

  First time you run tests, all tests are executed:

```bash
$ mocha-broken
1..2
ok 1 works fine
not ok 2 should 500 on req
  Error: expected 500 "Internal Server Error", got 302 "Moved Temporarily"

# tests 2
# pass 1
# fail 1
```

  Next time you run tests, only the failing are executed:

```bash
$ mocha-broken
1..1
not ok 1 should 500 on req
  Error: expected 500 "Internal Server Error", got 302 "Moved Temporarily"

# tests 1
# pass 0
# fail 1
```

  Once all tests pass, all are executed again.

## Passing arguments to mocha

  Arguments after `--` are passed to mocha:

```bash
$ mocha-broken -- --compilers coffee:coffee-script/register
```

## Installation

```bash
$ npm install -g mocha-broken
```

## License

  MIT

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