Skip to content

Commit b642b1b

Browse files
author
Brad Berger
committed
Adds coveralls reports
1 parent 1fdfea9 commit b642b1b

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.coveralls.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: xoUvi1Oewy3ahkiY1ixuu6Z7e3igZ1Fvr

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://semaphoreci.com/api/v1/projects/be573f04-507e-4659-ad3b-0611db2227eb/540401/badge.svg)](https://semaphoreci.com/brad/angular-material-calendar)
44
[![Code Climate](https://codeclimate.com/github/bradberger/angular-material-calendar/badges/gpa.svg)](https://codeclimate.com/github/bradberger/angular-material-calendar)
5+
[![Coverage Status](https://coveralls.io/repos/bradberger/angular-material-calendar/badge.svg?branch=master&service=github)](https://coveralls.io/github/bradberger/angular-material-calendar?branch=master)
56

67
A calendar directive for AngularJS and Angular Material Design.
78
It's lightweight at ~2.1 kB, and has a lot of configurability.

karma.conf.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ module.exports = function(config) {
2828
// preprocess matching files before serving them to the browser
2929
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
3030
preprocessors: {
31+
"dis/**/*.js": ["coverage"]
32+
},
33+
34+
coverageReporter: {
35+
type: "lcov",
36+
dir: "coverage/"
3137
},
3238

3339
// test results reporter to use
3440
// possible values: "dots", "progress"
3541
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
36-
reporters: ["progress"],
42+
reporters: ["dots", "coverage", "coveralls"],
3743

3844
// web server port
3945
port: 9876,
@@ -43,7 +49,7 @@ module.exports = function(config) {
4349

4450
// level of logging
4551
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
46-
logLevel: config.LOG_INFO,
52+
logLevel: config.LOG_WARN,
4753

4854
// enable / disable watching file and executing tests whenever any file changes
4955
autoWatch: true,

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@
4848
"gulp-minify-css": "~1.2",
4949
"gulp-minify-html": "~1.0",
5050
"gulp-protractor": "~1.0",
51-
"gulp-rename": "^1.2.2",
51+
"gulp-rename": "~1.2",
5252
"gulp-replace": "~0.5",
5353
"gulp-sass": "~2.0",
5454
"gulp-size": "~2.0",
5555
"gulp-uglify": "~1.2",
5656
"karma": "~0.13",
5757
"karma-chrome-launcher": "~0.2",
58+
"karma-coverage": "~0.5",
59+
"karma-coveralls": "~1.1",
5860
"karma-firefox-launcher": "~0.1",
5961
"karma-jasmine": "~0.3",
6062
"node-sass": "^3.3",

0 commit comments

Comments
 (0)