Skip to content

Commit 623d31d

Browse files
committed
Server test coverage moved to another command to control output. Packages for coverage moved to normal dependencies for heroku stuff
1 parent 62b1528 commit 623d31d

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

generated/gulpfile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ gulp.task('buildJS', ['lintJS'], function () {
4949
.pipe(gulp.dest('./public'));
5050
});
5151

52-
gulp.task('testServerJS', function (done) {
52+
gulp.task('testServerJS', function () {
53+
return gulp.src('./tests/server/**/*.js', {
54+
read: false
55+
}).pipe(mocha({ reporter: 'spec' }));
56+
});
57+
58+
gulp.task('testServerJSWithCoverage', function (done) {
5359
gulp.src('./server/**/*.js')
5460
.pipe(istanbul({
5561
includeUntested: true
@@ -163,4 +169,4 @@ gulp.task('default', function () {
163169
// Run browser testing when a browser test file changes.
164170
gulp.watch('tests/browser/**/*', ['testBrowserJS']);
165171

166-
});
172+
});

generated/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"gulp-babel": "^5.1.0",
2626
"gulp-concat": "^2.5.2",
2727
"gulp-eslint": "^0.14.0",
28-
"gulp-istanbul": "^0.10.0",
28+
"gulp-istanbul": "^0.9.0",
2929
"gulp-livereload": "^3.7.0",
3030
"gulp-minify-css": "^0.4.6",
3131
"gulp-mocha": "^2.0.0",
@@ -37,7 +37,9 @@
3737
"gulp-uglify": "^1.1.0",
3838
"karma": "^0.12.31",
3939
"karma-chai": "^0.1.0",
40+
"karma-coverage": "^0.2.7",
4041
"karma-mocha": "^0.1.10",
42+
"karma-mocha-reporter": "^1.0.2",
4143
"karma-phantomjs-launcher": "^0.1.4",
4244
"lodash": "^3.9.3",
4345
"mocha-mongoose": "^1.0.3",
@@ -56,10 +58,5 @@
5658
"socket.io": "^1.3.4",
5759
"socket.io-client": "^1.3.5",
5860
"supertest": "^0.15.0"
59-
},
60-
"devDependencies": {
61-
"gulp-istanbul": "^0.9.0",
62-
"karma-coverage": "^0.2.7",
63-
"karma-mocha-reporter": "^1.0.2"
6461
}
6562
}

0 commit comments

Comments
 (0)