mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
Run tests in sequence
This commit is contained in:
@@ -114,6 +114,7 @@
|
||||
"protractor": "~2.5.1",
|
||||
"rewire": "^2.3.3",
|
||||
"rimraf": "^2.4.3",
|
||||
"run-sequence": "^1.1.4",
|
||||
"shelljs": "^0.4.0",
|
||||
"sinon": "^1.17.2",
|
||||
"sinon-chai": "^2.8.0",
|
||||
|
||||
@@ -10,6 +10,7 @@ import { exec } from 'child_process';
|
||||
import psTree from 'ps-tree';
|
||||
import gulp from 'gulp';
|
||||
import Q from 'q';
|
||||
import runSequence from 'run-sequence';
|
||||
|
||||
const TEST_SERVER_PORT = 3003
|
||||
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:common:safe',
|
||||
// 'test:content:safe',
|
||||
@@ -333,7 +335,10 @@ gulp.task('test', [
|
||||
'test:karma:safe',
|
||||
'test:api-legacy:safe',
|
||||
'test:api-v2:safe',
|
||||
], () => {
|
||||
done);
|
||||
});
|
||||
|
||||
gulp.task('test', ['test:all'], () => {
|
||||
let totals = [0,0,0];
|
||||
|
||||
console.log('\n\x1b[36m\x1b[4mHabitica Test Summary\x1b[0m\n');
|
||||
|
||||
Reference in New Issue
Block a user