Summary Table
| Categories |
Total Count |
| PII |
0 |
| URL |
0 |
| DNS |
0 |
| EKL |
0 |
| IP |
0 |
| PORT |
0 |
| VsID |
0 |
| CF |
0 |
| AI |
0 |
| VPD |
0 |
| PL |
0 |
| Other |
0 |
File Content
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
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', "requirejs"],
plugins: [
'karma-requirejs',
// 'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-junit-reporter',
'karma-threshold-reporter',
'karma-ng-html2js-preprocessor',
'karma-coverage'
],
// list of files / patterns to load in the browser
files: [
// {pattern: 'app/libs/angular/js/angular.js', included: false },
{pattern: 'app/libs/angular-mocks/js/angular-mocks.js', included: false },
{pattern: 'app/libs/angular-sanitize/js/angular-sanitize.js', included: false },
{pattern: 'app/libs/angular-ui-router/js/angular-ui-router.js', included: false },
{pattern: 'app/libs/angular-busy/js/angular-busy.js', included: false },
{pattern: 'app/**/*.js', included: false },
{pattern: 'app/**/*.json', included: false },
{pattern: 'test/spec/*.js', included: false },
{pattern: 'test/assets/*.js', included: false },
{pattern: 'app/modules/ui-components/scroll-indicator/*.html', served: true, included: false },
// http://karma-runner.github.io/0.10/plus/requirejs.html
'test/config.js'
],
// list of files / patterns to exclude
exclude: [
'app/scripts/config.js'
],
// web server port
port: 8888,
colors: true,
// 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: false,
includeBaseline: true,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['PhantomJS'],
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true,
reporters: ['progress' , 'junit', 'coverage', 'threshold'],
preprocessors: {
'app/modules/**/!(*_spec).js' : ['coverage'],
'app/modules/!templates.js' : ['coverage'],
'app/modules/ui-components/scroll-indicator/*.html' : []
},
thresholdReporter: {
statements: 0,
branches: 0,
functions: 0,
lines: 0
},
coverageReporter: {
reporters: [
{ type : 'lcov', dir:'coverage/'},
{ type : 'cobertura' }]
},
// the default configuration. Generates the junit test report.
junitReporter: {
outputFile: 'coverage/junit-test-results.xml',
suite: ''
}
});
};