Wondering what’s next for npm?Check out our public roadmap! »

    broccoli-test-runner

    1.0.0 • Public • Published

    Broccoli Plugin Adapter

    Build Status Dependency Status DevDependency Status Npm downloads Npm Version Git tag Github issues 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

    'use strict'
     
    const BroccoliTestRunner = require('broccoli-test-runner')
    const broccoliRunner = new BroccoliTestRunner('test/fixtures') // path to build directory with brocfile
     
    describe('Serves', () => {
        before(() => {
           return  runner.build()
        })
        after(() => {
            return runner.stop()
        })
        it('..', ..) // test your plugin serves content as expected
    })
     
    describe('Builds', () = {
        before(() => {
           return  runner.build()
        })
        after(() => {
            return runner.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.

    Install

    npm i broccoli-test-runner

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    52.3 kB

    Total Files

    14

    Last publish

    Collaborators

    • avatar