broccoli-test-runner
v1.3.0
Published
Adapter for custom broccoli plugins
Downloads
13
Readme
Broccoli Test Runner
Test you plugins with an actual instance of Broccoli building or serving content. Broccoli will be run non-blocking in a separate Process.
Example
'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
npm install broccoli-test-runner --save-dev
License
This project is distributed under the MIT license.