Skip to content

Commit b627c07

Browse files
committed
refactor(tests) Get test script working again. Tidy up gulp file.
1 parent 0a9d5d3 commit b627c07

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

gulpfile.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ gulp.task('all', function(callback) {
1818
'clean',
1919
'build',
2020
'test',
21-
'midwayTest',
22-
'apiTest',
2321
callback);
2422
});
2523

@@ -74,7 +72,15 @@ gulp.task('map', function() {
7472
)();
7573
});
7674

77-
gulp.task('test', function(done) {
75+
gulp.task('test', function(callback) {
76+
runSequence(
77+
'karmaTest',
78+
'midwayTest',
79+
'apiTest',
80+
callback);
81+
});
82+
83+
gulp.task('karmaTest', function(done) {
7884
new Server({
7985
configFile: rootDir + '/config/karma.conf.js',
8086
singleRun: true

scripts/testrun.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
#!/bin/bash
2+
gulp test
23

3-
KARMA=./node_modules/karma/bin/karma
4-
MOCHA=./node_modules/mocha/bin/mocha
5-
6-
$KARMA start config/karma.conf.js --no-auto-watch --single-run --reporters=dots --browsers=PhantomJS
7-
$KARMA start config/karma.midway.conf.js --no-auto-watch --single-run --reporters=dots --browsers=PhantomJS
8-
$MOCHA test/api/*Spec.js

0 commit comments

Comments
 (0)