Sha256: 983c3b2e81e78225c0cbb100a6d0d96d634b44203a0e3f8e2d518c636a5eafc8

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

var project = require('../../lib/puppet-herald/project');

var files = project.dependencies.
    concat(project.devDependencies).
    concat(project.files.js).
    concat(project.files.html).
    concat(project.files.tests);

module.exports = function(config) {
  config.set({

    basePath: project.cwd,

    singleRun: true,

    frameworks: ['jasmine'],

    reporters: ['story', 'coverage'],

    // source files, that you wanna generate coverage for
    // do not include tests or libraries
    // (these files will be instrumented by Istanbul)
    preprocessors: project.preprocessors,

    // optionally, configure the reporter
    coverageReporter: {
      dir : 'coverage/javascript',
      reporters: [
        // reporters not supporting the `file` property
        { type: 'lcov', subdir: 'lcov' },
        // reporters supporting the `file` property, use `subdir` to directly
        // output them in the `dir` directory
        { type: 'cobertura', subdir: '.', file: 'cobertura.xml' },
        { type: 'text', subdir: '.', file: 'text.txt' },
        { type: 'text-summary', subdir: '.', file: 'text-summary.txt' },
      ]
    },

    ngHtml2JsPreprocessor: {
      // strip this from the file path
      stripPrefix: project.publicDir + '/',
    },

    files: files
  });
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-herald-0.8.1 test/javascript/karma.conf.js
puppet-herald-0.8.0 test/javascript/karma.conf.js