Socket
Socket
Sign inDemoInstall

broccoli-test-runner

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-test-runner

Adapter for custom broccoli plugins


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

Broccoli Test Runner

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  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.

Keywords

FAQs

Package last updated on 13 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc