diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-12 16:22:14 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-12 16:22:22 +0000 |
commit | 3d3f692fd8a3fe07daf2f5b8811ebc00846b60c1 (patch) | |
tree | dfaed70738c44a948bb41dc410ea77aa4a1449c6 /syweb/webclient/test/karma.conf.js | |
parent | Add a few more comments to the federation handler (diff) | |
download | synapse-3d3f692fd8a3fe07daf2f5b8811ebc00846b60c1.tar.xz |
Add test coverage to the webclient. Update .gitignore
Diffstat (limited to 'syweb/webclient/test/karma.conf.js')
-rw-r--r-- | syweb/webclient/test/karma.conf.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/syweb/webclient/test/karma.conf.js b/syweb/webclient/test/karma.conf.js index 5f0642ca33..37a9eaf1c1 100644 --- a/syweb/webclient/test/karma.conf.js +++ b/syweb/webclient/test/karma.conf.js @@ -52,18 +52,32 @@ module.exports = function(config) { // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { + '../login/**/*.js': 'coverage', + '../room/**/*.js': 'coverage', + '../components/**/*.js': 'coverage', + '../user/**/*.js': 'coverage', + '../home/**/*.js': 'coverage', + '../recents/**/*.js': 'coverage', + '../settings/**/*.js': 'coverage', + '../app.js': 'coverage' }, // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress', 'junit'], + reporters: ['progress', 'junit', 'coverage'], junitReporter: { outputFile: 'test-results.xml', suite: '' }, + coverageReporter: { + type: 'cobertura', + dir: 'coverage/', + file: 'coverage.xml' + }, + // web server port port: 9876, |