File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ gulp.task('all', function(callback) {
18
18
'clean' ,
19
19
'build' ,
20
20
'test' ,
21
- 'midwayTest' ,
22
- 'apiTest' ,
23
21
callback ) ;
24
22
} ) ;
25
23
@@ -74,7 +72,15 @@ gulp.task('map', function() {
74
72
) ( ) ;
75
73
} ) ;
76
74
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 ) {
78
84
new Server ( {
79
85
configFile : rootDir + '/config/karma.conf.js' ,
80
86
singleRun : true
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ gulp test
2
3
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
You can’t perform that action at this time.
0 commit comments