karma-cov.conf.js 512 B

12345678910111213141516171819202122
  1. var path = require('path');
  2. module.exports = function (config) {
  3. config.set({
  4. basePath: '..',
  5. browsers: ['Firefox'],
  6. frameworks: ['mocha'],
  7. reporters: ['mocha', 'coverage'],
  8. files: ['test/build/coverage.js'],
  9. coverageReporter: {
  10. reporters : [
  11. { 'type': 'text' },
  12. { 'type': 'lcov', dir: 'test/coverage' },
  13. { 'type': 'html', dir: 'test/coverage' }
  14. ]
  15. },
  16. port: 9876,
  17. colors: true,
  18. singleRun: true,
  19. logLevel: config.LOG_INFO
  20. });
  21. };