# broccoli-test-runner

> Adapter for custom broccoli plugins

Latest version **1.3.0** (published 2021-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install broccoli-test-runner
pnpm add broccoli-test-runner
yarn add broccoli-test-runner
bun add broccoli-test-runner
```

## 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.3.0 |
| Published | 2021-05-13 |
| First published | 2020-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 57.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stefan Pfaffel |
| Maintainers | stfsy |
| Keywords | broccoli, broccoli-plugin |

## Links

- npm: https://www.npmjs.com/package/broccoli-test-runner
- Repository: https://github.com/stfsy/broccoli-test-runner
- Homepage: https://github.com/stfsy/broccoli-test-runner#readme
- Issues: https://github.com/stfsy/broccoli-test-runner/issues
- npm.io page: https://npm.io/package/broccoli-test-runner

## Dependencies (1)

- [broccoli-cli](https://npm.io/package/broccoli-cli.md) ^1.0.0

## Recent versions

- 1.3.0 (latest) — 2021-05-13
- 1.0.0 — 2020-04-11

## README

# Broccoli Test Runner

[![Build Status](https://travis-ci.org/stfsy/broccoli-test-runner.svg?branch=master)](https://travis-ci.org/stfsy/broccoli-test-runner) [![Dependency Status](https://img.shields.io/david/stfsy/broccoli-test-runner.svg)](https://github.com/stfsy/broccoli-test-runner/blob/master/package.json) [![DevDependency Status](https://img.shields.io/david/dev/stfsy/broccoli-test-runner.svg)](https://github.com/stfsy/broccoli-test-runner/blob/master/package.json) [![Npm downloads](https://img.shields.io/npm/dm/broccoli-test-runner.svg)](https://www.npmjs.com/package/broccoli-test-runner) [![Npm Version](https://img.shields.io/npm/v/broccoli-test-runner.svg)](https://www.npmjs.com/package/broccoli-test-runner) [![Git tag](https://img.shields.io/github/tag/stfsy/broccoli-test-runner.svg)](https://github.com/stfsy/broccoli-test-runner/releases) [![Github issues](https://img.shields.io/github/issues/stfsy/broccoli-test-runner.svg)](https://github.com/stfsy/broccoli-test-runner/issues) [![License](https://img.shields.io/npm/l/broccoli-test-runner.svg)](https://github.com/stfsy/broccoli-test-runner/blob/master/LICENSE)

Test you plugins with an actual instance of Broccoli building or serving content. Broccoli will be run non-blocking in a separate Process.

## Example

```javascript
'use strict'

const BroccoliTestRunner = require('broccoli-test-runner')
const broccoliRunner = new BroccoliTestRunner('test/fixtures') // path to build directory with brocfile

describe('Serves', () => {
    before(() => {
       return  broccoliRunner.build()
    })
    after(() => {
        return broccoliRunner.stop()
    })
    it('..', ..) // test your plugin serves content as expected
})

describe('Builds', () = {
    before(() => {
       return  broccoliRunner.build()
    })
    after(() => {
        return broccoliRunner.stop()
    })
    it('..', ..) // test your plugin builds content as expected
})
```

## Installation

```javascript
npm install broccoli-test-runner --save-dev
```

## License

This project is distributed under the MIT license.

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