Skip to content

Commit

Permalink
Adding coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
mzabriskie committed Mar 17, 2015
1 parent a98c61f commit ce03103
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.idea
*.iml
node_modules
.idea
.tscache
.DS_Store
node_modules/
coverage/
test/typescript/axios.js*

2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ email:
on_success: never
before_script:
- npm install -g grunt-cli
after_success:
- npm run coveralls
9 changes: 7 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,20 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {

'dist/axios.js': 'coverage'
},


// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
reporters: ['progress', 'coverage'],

coverageReporter: {
type: 'lcov',
dir: 'coverage/',
subdir: '.'
},

// web server port
port: 9876,
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "grunt test",
"start": "node ./sandbox/server.js"
"start": "node ./sandbox/server.js",
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"repository": {
"type": "git",
Expand All @@ -28,6 +29,7 @@
"es6-promise": "^2.0.1"
},
"devDependencies": {
"coveralls": "^2.11.2",
"grunt": "^0.4.5",
"grunt-banner": "^0.3.1",
"grunt-contrib-clean": "^0.6.0",
Expand All @@ -39,6 +41,7 @@
"grunt-update-json": "^0.2.1",
"grunt-webpack": "^1.0.8",
"karma": "^0.12.31",
"karma-coverage": "^0.2.7",
"karma-jasmine": "^0.3.5",
"karma-jasmine-ajax": "^0.1.12",
"karma-phantomjs-launcher": "^0.1.4",
Expand Down

0 comments on commit ce03103

Please sign in to comment.