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 cb337b1 commit 9dec37e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 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
11 changes: 10 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,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 @@ -422,6 +430,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
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
"private": true,
"version": "0.0.0",
"description": "AngularJS front-end to My-Wallet-V3.",
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"errorhandler": "^1.4.2",
"express": "^4.13.3",
"request": "^2.55.0",
"bower": "^1.3.1",
"browserify": "^6.3.2",
"chalk": "^0.5.1",
"coffee-script": "^1.9.1",
"compression": "^1.3.0",
"ejs": "~0.8.4",
"errorhandler": "^1.4.2",
"express": "^4.13.3",
"get-stdin": "^3.0.0",
"git-changelog": "^0.1.8",
"grunt": "^0.4.5",
Expand All @@ -32,6 +30,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 Expand Up @@ -61,6 +60,7 @@
"nodemon": "^1.8.1",
"object-assign": "^1.0.0",
"protractor": "~1.0.0",
"request": "^2.55.0",
"shelljs": "^0.3.0",
"sinon": "^1.10.3",
"spies": "^0.1.6",
Expand Down

0 comments on commit 9dec37e

Please sign in to comment.