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

gulp-modular-karma

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-modular-karma

Boilerplate gulp tasks for unit testing with gulp-modular.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
increased by38.64%
Maintainers
2
Weekly downloads
 
Created
Source

gulp-modular-karma npm version Dependency Status

Modular extension to run unit tests in a gulp-modular project.

Installation

npm install gulp-modular-karma
bower install angular-mocks

Karma configuration

Copy default.karma.conf.js in your project root and name it karma.conf.js.

Integration in gulpfile

var gulp = require('gulp');
var gulpModularKarma = require('gulp-modular-karma');

// optionally overwrite default configuration
var config = {

  //// task [`karma`] performs unit tests on project
  karma: {
  //  src : './karma.conf.js', // karma configuration file to use
  //  browsers: ['PhantomJS', 'Firefox', 'Chrome'] // all browser to run tests in (only for `test:all`)
  },
};
  
gulpModularKarma(gulp, config);

Usage

Run gulp karma to execute the tests once. Run gulp karma:watch to execute the tests whenever a file changes. Run gulp karma:all to run the tests in all defined browers.

Run gulp test, gulp test:watch or gulp test:all to build the project before the related karma task is run.

Keywords

FAQs

Package last updated on 14 Mar 2016

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