|
| 1 | +// Karma configuration |
| 2 | +// Generated on Mon Feb 27 2017 15:19:23 GMT-0500 (EST) |
| 3 | + |
| 4 | +module.exports = function(config) { |
| 5 | + config.set({ |
| 6 | + |
| 7 | + // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 | + basePath: '', |
| 9 | + |
| 10 | + |
| 11 | + // frameworks to use |
| 12 | + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 13 | + frameworks: ['jasmine'], |
| 14 | + |
| 15 | + |
| 16 | + // list of files / patterns to load in the browser |
| 17 | + files: [ |
| 18 | + './node_modules/angular/angular.js', |
| 19 | + './node_modules/angular-route/angular-route.js', |
| 20 | + './node_modules/angular-mocks/angular-mocks.js', |
| 21 | + './js/playlist.module.js', |
| 22 | + './js/*.controller.js', |
| 23 | + './js/*.controller.spec.js' |
| 24 | + ], |
| 25 | + |
| 26 | + |
| 27 | + // list of files to exclude |
| 28 | + exclude: [ |
| 29 | + ], |
| 30 | + |
| 31 | + |
| 32 | + // preprocess matching files before serving them to the browser |
| 33 | + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 34 | + preprocessors: { |
| 35 | + }, |
| 36 | + |
| 37 | + |
| 38 | + // test results reporter to use |
| 39 | + // possible values: 'dots', 'progress' |
| 40 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 41 | + reporters: ['progress'], |
| 42 | + |
| 43 | + |
| 44 | + // web server port |
| 45 | + port: 9876, |
| 46 | + |
| 47 | + |
| 48 | + // enable / disable colors in the output (reporters and logs) |
| 49 | + colors: true, |
| 50 | + |
| 51 | + |
| 52 | + // level of logging |
| 53 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 54 | + logLevel: config.LOG_INFO, |
| 55 | + |
| 56 | + // enable / disable watching file and executing tests whenever any file changes |
| 57 | + autoWatch: false, |
| 58 | + |
| 59 | + // start these browsers |
| 60 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 61 | + browsers: ['PhantomJS'], |
| 62 | + |
| 63 | + // Continuous Integration mode |
| 64 | + // if true, Karma captures browsers, runs the tests and exits |
| 65 | + singleRun: true, |
| 66 | + |
| 67 | + coverageReporter: { |
| 68 | + reporters: [{ |
| 69 | + type: 'html', |
| 70 | + dir: 'shippable/codecoverage/' |
| 71 | + }, { |
| 72 | + type: 'cobertura', |
| 73 | + dir: 'shippable/codecoverage/', |
| 74 | + file: 'coverage.xml' |
| 75 | + }] |
| 76 | + }, |
| 77 | + junitReporter: { |
| 78 | + outputFile: 'shippable/testresults/unit.xml', |
| 79 | + suite: '' |
| 80 | +}, |
| 81 | + |
| 82 | + }) |
| 83 | +} |
0 commit comments