Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
spurious changes to kick off coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperreality committed Aug 31, 2016
1 parent 877c094 commit 6aacfae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,25 +322,25 @@ gulp.task('mocha', function (done) {
});
});

// add configuration options for coverage here
// Add configuration options for coverage here
gulp.task('configure-coverage', function (done) {
// Set coverage config environment variable so karma-coverage knows to run it
testConfig.coverage = true;
done();
});

// prepare istanbul coverage test
// Prepare istanbul coverage test
gulp.task('pre-test', function () {

// tell istanbul to show results for all server js assets
// Display coverage for all server JavaScript files
return gulp.src(defaultAssets.server.allJS)
// Covering files
.pipe(plugins.istanbul())
// Force `require` to return covered files
.pipe(plugins.istanbul.hookRequire());
});

// run istanbul test and write report
// Run istanbul test and write report
gulp.task('mocha:coverage', ['pre-test', 'mocha'], function () {
var testSuites = changedTestFiles.length ? changedTestFiles : testAssets.tests.server;

Expand All @@ -350,14 +350,15 @@ gulp.task('mocha:coverage', ['pre-test', 'mocha'], function () {
}));
});

// join the coverage files for client and server into a single file
// Join the coverage files for client and server into a single file
// Otherwise they get sent to coveralls as separate builds
gulp.task('merge-lcov', function (done) {
return gulp.src('./coverage/**/lcov.info')
.pipe(lcovMerger())
.pipe(gulp.dest('./coverage/merged/'));
});

// send coverage test results to coveralls
// Send coverage test results to coveralls
gulp.task('coveralls', ['merge-lcov'], function (done) {
return gulp.src('./coverage/merged/lcov.info')
.pipe(plugins.coveralls());
Expand Down

0 comments on commit 6aacfae

Please sign in to comment.