Commit 6c01723b84e04a083bacca27a03a81a31e2a0af3
1 parent
7f10a7cf
Exists in
master
and in
1 other branch
added coverage info to karma test execution
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
karma.conf.js
| ... | ... | @@ -110,8 +110,10 @@ module.exports = function (config) { |
| 110 | 110 | ], |
| 111 | 111 | |
| 112 | 112 | coverageReporter: { |
| 113 | - type: 'html', | |
| 114 | - dir: 'coverage/' | |
| 113 | + reporters:[ | |
| 114 | + {type: 'html', dir:'coverage/'}, | |
| 115 | + {type: 'text-summary'} | |
| 116 | + ] | |
| 115 | 117 | }, |
| 116 | 118 | |
| 117 | 119 | reporters: ['spec', "coverage"], |
| ... | ... | @@ -126,8 +128,7 @@ module.exports = function (config) { |
| 126 | 128 | // It was not possible to do it there because karma doesn't let us now if we are |
| 127 | 129 | // running a single test or not |
| 128 | 130 | configuration.preprocessors = { |
| 129 | - 'src/**/*.js': ['sourcemap'], | |
| 130 | - 'src/**/*.ts': ['sourcemap'] | |
| 131 | + 'src/noosfero.js': ['sourcemap', 'coverage'] | |
| 131 | 132 | }; |
| 132 | 133 | // 'src/**/*.js': ['sourcemap'], |
| 133 | 134 | // 'src/**/*.[sS]pec.ts': ['sourcemap'] | ... | ... |