Skip to content

travi/karma-mocha-given

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-mocha-given

Build Status Coverage Status Code Climate Dependency Status

npm license

Installation

$ npm install karma-mocha-given --save-dev

Add mocha-given to the frameworks key in your Karma configuration, before mocha:

module.exports = function(config) {
  config.set({
    frameworks: ['mocha-given', 'mocha']
  });
}

If using coffeescript to make the tests read more like feature files, don't forget to use the Karma preprocessor:

preprocessors: {
    '**/*.coffee': ['coffee']
},