npm.io
1.0.1 • Published 10 years ago

karma-apolog

Licence
ISC
Version
1.0.1
Deps
1
Vulns
0
Weekly
0

Karma Apolog

How to use

  1. npm install --save-dev karma-apolog
  2. configure the preprocessor apolog in karma.conf.js
  3. write features and specs
  4. run karma

In order to configure the preprocessor in karma.conf.js just add a path that points to "apolog". E.g:

preprocessor: {
  'features/**/*.feature': 'apolog'
},
...

So, the example above will preprocess all files located at "features/**/*.feature" with Apolog. Don't forget to setup the path for features. E.g.:

    // list of files / patterns to load in the browser
    files: [
        'features/**/*.features',
        'test/**/*.test.js',
        'src/**/*.js'
    ],