Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-karma-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-karma-plugin

Plugin for Broccoli that runs tests with Karma

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

broccoli-karma-plugin

Plugin for Broccoli that runs tests with Karma.

Install

npm install karma
# Also install all required karma plugins
npm install broccoli-karma-plugin

Usage

// Brocfile.js
var broccoliKarma = require('broccoli-karma-plugin')

var runTests = broccoliKarma('inputTree/', {
  files: ['**/*.js'] // Files paths are relative to input tree
  // Here any karma options
})

module.exports = runTests

To use plugin with broccoli serve you need option autoWatch: true (by default it is true).
Then on first build plugin will start karma server, and on rebuild file changes will be watched by karma.

To use with broccoli build you need to set option singleRun: true.
With this option karma starts server, runs tests and exits (so-called continious integration mode).
Plugin will wait until karma exits, and if some test will fail, task will return an error.

License

Public domain, see the LICENCE.md file.

Keywords

FAQs

Package last updated on 01 Apr 2015

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc