Run tests in sequence

This commit is contained in:
Blade Barringer
2015-11-09 12:47:56 -06:00
parent 598d25dc48
commit 6b7a757459
2 changed files with 8 additions and 2 deletions

View File

@@ -114,6 +114,7 @@
"protractor": "~2.5.1", "protractor": "~2.5.1",
"rewire": "^2.3.3", "rewire": "^2.3.3",
"rimraf": "^2.4.3", "rimraf": "^2.4.3",
"run-sequence": "^1.1.4",
"shelljs": "^0.4.0", "shelljs": "^0.4.0",
"sinon": "^1.17.2", "sinon": "^1.17.2",
"sinon-chai": "^2.8.0", "sinon-chai": "^2.8.0",

View File

@@ -10,6 +10,7 @@ import { exec } from 'child_process';
import psTree from 'ps-tree'; import psTree from 'ps-tree';
import gulp from 'gulp'; import gulp from 'gulp';
import Q from 'q'; import Q from 'q';
import runSequence from 'run-sequence';
const TEST_SERVER_PORT = 3003 const TEST_SERVER_PORT = 3003
const TEST_DB = 'habitrpg_test' const TEST_DB = 'habitrpg_test'
@@ -325,7 +326,8 @@ gulp.task('test:api-v2:safe', ['test:prepare:server'], (done) => {
}); });
}); });
gulp.task('test', [ gulp.task('test:all', (done) => {
runSequence(
'test:e2e:safe', 'test:e2e:safe',
'test:common:safe', 'test:common:safe',
// 'test:content:safe', // 'test:content:safe',
@@ -333,7 +335,10 @@ gulp.task('test', [
'test:karma:safe', 'test:karma:safe',
'test:api-legacy:safe', 'test:api-legacy:safe',
'test:api-v2:safe', 'test:api-v2:safe',
], () => { done);
});
gulp.task('test', ['test:all'], () => {
let totals = [0,0,0]; let totals = [0,0,0];
console.log('\n\x1b[36m\x1b[4mHabitica Test Summary\x1b[0m\n'); console.log('\n\x1b[36m\x1b[4mHabitica Test Summary\x1b[0m\n');