Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
test(Coverage): report coverage via Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Dec 11, 2015
1 parent 51a6c4a commit 1747b64
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ e2e-tests/ignore.js
.sass-cache
build
coverage
coverage-lcov
dist

# External modules
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ node_js:
before_install:
- npm install -g grunt-cli
- gem install sass
script: grunt build && node_modules/karma/bin/karma start karma.conf.js --single-run
script: grunt build && node_modules/karma/bin/karma start karma.conf.js --single-run && grunt coveralls
after_success: coveralls
notifications:
slack:
secure: iz0CoBcz79s70KyZ3Kb4fcQqSRl3mK0mAqoqz5TiXwHRq0tPL/CIy+kNQ15YKykNXg9++7lvhOmxedq6H+0mQSZA4xpTbBPVAgISoPgkW0O7wQv6JFXCh2jhUEcPWx1FFaTNkrrN580XX7IONd+iwjauFb4RTU+388Qa+PkL/Zqq6UEqQluAg1H+njy0+klvi/Iz0eAHBTNPwiqZweZQBRYLkEjsmev/bPY94C2UViQGxCMZ+UEV2LMSLeumqkLMuD9vYrXTGqtg00WW36HcPax2Kju0aLjoycuqqypSZOVRuTdOZ4jvB4YUg+mMn9oC7/NFwvPre+zKHfd6jrjbtX3+4rdCr7AL+npSwAx2wKRkhJthHB+OfQ1paeQ/GRL735+VEpweQJumZ4aGOVbd6NF0kbFR9DpPO+xEUp/9V71FpFvBh5bJd8tcfgDrQLk2FzwsVI935yLdBYcbPb5zWOBwy9lz5uFmaZpeLpNwZRHgKLeC8XrEUsSOq6ef8aZkXBqRXpRD3ZNp9hwK6T7Mpi0gZNc4bRaZBanF1W9E1Hlegm7UNMh3v6ePc+B81eh7KUiydlYurQHuw/eXo+H+91VXkKdjCWowmugXsq8XmBUVNJtglG2A77e7uflsm6bwWKnnds4nwMzEBsAvoiYCm98USv1Fl1vdXRVfoI+zcgo=
11 changes: 10 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,15 @@ module.exports = (grunt) ->
grep_commits: '^fix|^feat|^ui|^copy|^docs|^dep|^refactor|^chore|^test|BREAKING'
repo_url: 'https://github.com/blockchain/My-Wallet-HD-Frontend'

# Load the plugin that provides the "uglify" task.
coveralls:
options:
debug: true
coverageDir: 'coverage-lcov'
dryRun: false
force: true
recursive: true


grunt.loadNpmTasks "grunt-contrib-uglify"
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-contrib-coffee')
Expand All @@ -483,6 +491,7 @@ module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-merge-json')
grunt.loadNpmTasks('git-changelog')
grunt.loadNpmTasks('grunt-babel')
grunt.loadNpmTasks('grunt-karma-coveralls')

grunt.registerTask "compile", ["coffee"]

Expand Down
7 changes: 5 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,11 @@ module.exports = function(karma){
reporters: ['progress','osx', 'coverage'],

coverageReporter: {
type : 'html',
dir : 'coverage/',
reporters: [
{ type : 'html', dir : 'coverage/'},
{ type : 'lcov', dir : 'coverage-lcov/'}
],

subdir: '.',

instrumenters: { isparta : require('isparta') },
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "angular-blockchain-wallet",
"private": true,
"version": "0.0.0",
"description": "AngularJS front-end to My-Wallet-HD.",
"description": "AngularJS front-end to My-Wallet-V3.",
"dependencies": {
"basic-auth": "^1.0.3",
"body-parser": "^1.14.1",
Expand Down Expand Up @@ -37,6 +37,7 @@
"grunt-contrib-uglify": "^0.7.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-html2js": "^0.2.9",
"grunt-karma-coveralls": "^2.5.4",
"grunt-legacy-util": "^0.2.0",
"grunt-merge-json": "^0.9.5",
"grunt-preprocess": "^4.1.0",
Expand Down

0 comments on commit 1747b64

Please sign in to comment.