Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
baukh789 committed Apr 20, 2017
1 parent 1d53583 commit b14ebc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ npm-debug.log
.idea
.DS_Store
js/.DS_Store
/coverage
9 changes: 2 additions & 7 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = function (config) {
captureTimeout: 60000,
reporters: ['progress', 'coverage'],
preprocessors: {
'test/*_test.js': ['webpack', 'coverage']
'test/*_test.js': ['webpack'],
'src/**/*.js': ['webpack', 'coverage']
},
webpack: {
devtool: 'eval',
Expand Down Expand Up @@ -84,12 +85,6 @@ module.exports = function (config) {
// generates ./coverage/coverage-final.json
{
type: 'json', subdir: '.'
},
{
// 这就是Codecov支持的文件类型
type: 'cobertura',
subdir: '.',
dir: 'test/coverage'
}
]
},
Expand Down

0 comments on commit b14ebc2

Please sign in to comment.