Skip to content

Commit 24c3ade

Browse files
committed
use runSequence to sequence test suites
test-node currently exits the gulp process, so make sure test-browser completes before the trigger test-node
1 parent 3aa6359 commit 24c3ade

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gulpfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ gulp.task('test-browser', ['exceptionless.test.umd'], function(){
142142
.pipe(mochaPhantomJS());
143143
});
144144

145-
gulp.task('test', ['test-node', 'test-browser']);
145+
gulp.task('test', function(){
146+
// test-node calls process.exit(), so run browser tests before node tests
147+
var runSequence = require('run-sequence');
148+
runSequence('test-browser', 'test-node');
149+
});
146150

147151
gulp.task('format', function () {
148152
var exec = require('gulp-exec');

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"requirejs": "^2.3.2",
4848
"rewire": "^2.5.2",
4949
"rimraf": "2.5.3",
50+
"run-sequence": "^1.2.2",
5051
"source-map-support": "0.4.2",
5152
"systemjs": "^0.19.39",
5253
"tracekit": "0.4.3",

0 commit comments

Comments
 (0)