UNPKG

gaf-mobile

Version:

GAF mobile Web site

83 lines (66 loc) 2.24 kB
'use strict'; // Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html // You only need to modify this file if you install a new JavaScript // library. Just add it to the "files" list in that case. module.exports = function(config) { config.set({ // Base path, that will be used to resolve files and exclude basePath: '', // Testing framework to use (jasmine/mocha/qunit/...) frameworks: ['jasmine'], // Web server port port: 9876, // Level of logging // Possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || // LOG_INFO || LOG_DEBUG logLevel: config.LOG_INFO, // Enable / disable watching file and executing tests whenever any // file changes autoWatch: true, // Start these browsers, currently available: // - Chrome // - ChromeCanary // - Firefox // - Opera // - Safari (only Mac) // - PhantomJS // - IE (only Windows) browsers: ['PhantomJS'], // Continuous Integration mode singleRun: false, // Karma reporters reporters: ['progress', 'coverage', 'junit'], mochaReporter: { output: 'autowatch' }, // Source files to be track (i.e. files going into prod) // You shouldn't need to touch that preprocessors: { 'app/scripts/{*.js,!(ext)/**/!(*.spec|*.mock)+(.js)}': ['coverage'], 'app/components/hireme-modal/**/!(*.spec|*.mock).js': ['coverage'], 'app/components/**/*.html': ['ng-html2js'], 'app/views/*.html': ['ng-html2js'] }, ngHtml2JsPreprocessor: { stripPrefix: 'app/' }, // Coverage reporter configuration // Used to generate the unit test coverage report with Istanbul coverageReporter: { dir: 'test/coverage/', includeAllSources: true, reporters: [ { type: 'html', subdir: 'html' }, { type: 'cobertura', subdir: '.', file: 'coverage.xml' }, { type: 'text-summary', subdir: '.', file: 'coverage-summary.txt' }, { type: 'json', subdir: '.', file: 'coverage.json' } ] }, // JUnit reporter configuration // Used to import test results into Jenkins junitReporter: { outputFile: 'test/test-results.xml' } }); };