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

Commit

Permalink
[bug] Gulp test wasn't running server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codydaig committed Sep 7, 2015
1 parent 522cc6b commit 2131ccd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ gulp.task('mocha', function (done) {

// Connect mongoose
mongoose.connect(function () {
mongoose.loadModels();
// Run the tests
gulp.src(testAssets.tests.server)
.pipe(plugins.mocha({
Expand Down Expand Up @@ -220,15 +221,15 @@ gulp.task('build', function (done) {

// Run the project tests
gulp.task('test', function (done) {
runSequence('env:test', ['karma', 'mocha'], done);
runSequence('env:test', 'karma', 'mocha', done);
});

gulp.task('test:server', function (done) {
runSequence('env:test', ['mocha'], done);
runSequence('env:test', 'mocha', done);
});

gulp.task('test:client', function (done) {
runSequence('env:test', ['karma'], done);
runSequence('env:test', 'karma', done);
});

// Run the project in development mode
Expand Down

0 comments on commit 2131ccd

Please sign in to comment.