New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

broccoli-plugin-karma

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-plugin-karma

[Karma](http://karma-runner.github.io/) test runner for broccoli builds

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

broccoli-plugin-karma

Karma test runner for broccoli builds

Install

npm install --save-dev broccoli-karma-plugin

Usage

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

    runTests = broccoliKarma('inputTree/', {
        files: ['**/*.js'] // Files paths are relative to input tree
        autoWatch: true, // Use with broccoli serve, on by default
        singleRun: false, // Use with broccoli build, off by default
        // 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. There is no live reload server or script included. You will need to author your own, or manually refresh the page on rebuilds to rerun your tests.

To use with broccoli build you need to set option singleRun: true. With this option karma starts server, runs tests and exits (so-called continuous 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.

FAQs

Package last updated on 16 Jul 2017

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