Skip to content

Commit

Permalink
added coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
remojansen committed Apr 16, 2015
1 parent 82d2bc8 commit e43e7e7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: YuOflke371ozp4Z7WqX7lSMJ8p6KH9eyM
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ gulp.task("karma", function(cb) {
});

gulp.task("test", function(cb) {
runSequence("bundle", "karma", cb);
runSequence("bundle", "karma", "cover", cb);
});

//******************************************************************************
Expand Down
10 changes: 5 additions & 5 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ module.exports = function (config) {
'use strict';

var testFiles = __dirname + '/bundled/test/*.test.js',
coverageFolder = __dirname + '/bundled/test/*.test.js';
coverageFolder = __dirname + '/coverage/';

config.set({
basePath: '',
frameworks: ['mocha', 'chai', 'sinon'],
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
reporters: ['progress', 'coverage', 'coveralls'],
coverageReporter: {
type : 'text',
type : 'lcov',
dir : coverageFolder,
file : 'coverage.txt'
},
plugins : [
'karma-coverage',
'karma-mocha',
'karma-chai',
'karma-sinon',
'karma-coveralls',
'karma-phantomjs-launcher'
],
preprocessors: {
testFiles : ['coverage']
testFiles : ['coverage', 'coveralls']
},
files : [
testFiles
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"karma": "^0.12.31",
"karma-chai": "^0.1.0",
"karma-coverage": "^0.3.0",
"karma-coveralls": "^0.1.5",
"karma-mocha": "^0.1.10",
"karma-phantomjs-launcher": "^0.1.4",
"karma-sinon": "^1.0.4",
Expand Down
1 change: 0 additions & 1 deletion test/kernel.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///<reference path="../typings/tsd.d.ts" />

import chai = require('chai');
import inversify = require("../source/inversify");
var expect = chai.expect;

Expand Down
3 changes: 1 addition & 2 deletions test/type_binding.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///<reference path="../typings/tsd.d.ts" />

import chai = require('chai');
import inversify = require("../source/inversify");
var expect = chai.expect;

Expand Down Expand Up @@ -82,5 +81,5 @@ describe("Type Binging Class Test Suite \n", () => {
expect(instance.greet()).to.equals("foo");
done();
});

});

0 comments on commit e43e7e7

Please sign in to comment.