Skip to content
Snippets Groups Projects
Commit f29bd1cb authored by Thomas Müller's avatar Thomas Müller
Browse files

adding code coverage support

parent 350214c6
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@
"devDependencies": {
"karma": "*",
"karma-jasmine": "*",
"karma-junit-reporter": "*"
"karma-junit-reporter": "*",
"karma-coverage": "*"
},
"engine": "node >= 0.8"
}
......@@ -97,7 +97,7 @@ module.exports = function(config) {
// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots', 'junit'],
reporters: ['dots', 'junit', 'coverage'],
junitReporter: {
outputFile: 'tests/autotest-results-js.xml'
......@@ -106,6 +106,17 @@ module.exports = function(config) {
// web server port
port: 9876,
preprocessors: {
'apps/files/js/*.js': 'coverage'
},
coverageReporter: {
dir:'tests/karma-coverage',
reporters: [
{ type: 'html' },
{ type: 'cobertura' }
]
},
// enable / disable colors in the output (reporters and logs)
colors: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment