Skip to content

Commit

Permalink
Add coverage via coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
okcoker committed Mar 24, 2016
1 parent faafb67 commit fde8ec6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_js:
- "5"
before_install:
- npm install -g grunt-cli
after_script:
- cat coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js
14 changes: 12 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@ module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'sinon-chai'],
files: [
'src/taggle.js',
'test/**/*-test.js'
],
preprocessors: {
'src/taggle.js': ['coverage']
},
webpackMiddleware: {
noInfo: true
},
coverageReporter: {
type: 'html',
dir: 'coverage/'
dir: 'coverage/',
reporters: [
// { type: 'html', subdir: 'report-html' },
{ type: 'lcov', subdir: 'report-lcov' }
]
},
reporters: ['progress', 'coverage'],
port: 9876,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"devDependencies": {
"autoprefixer": "^6.3.4",
"chai": "^3.5.0",
"coveralls": "^2.11.8",
"cssnano": "^3.5.2",
"grunt": "^0.4.5",
"grunt-contrib-clean": "^1.0.0",
Expand Down

0 comments on commit fde8ec6

Please sign in to comment.