Skip to content

Boilerplate gulp tasks for unit testing with gulp-modular.

License

Notifications You must be signed in to change notification settings

stomt/gulp-modular-karma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Boilerplate gulp tasks for unit testing with gulp-modular.

Resources

License

Stars

Watchers

Forks

Packages

No packages published