mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Add server_side tests to gulp
This commit is contained in:
@@ -70,6 +70,31 @@ gulp.task('test:common:safe', ['test:prepare:build'], (cb) => {
|
|||||||
pipe(runner);
|
pipe(runner);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('test:server_side', ['test:prepare:build'], (cb) => {
|
||||||
|
let runner = exec(
|
||||||
|
testBin('mocha test/server_side'),
|
||||||
|
(err, stdout, stderr) => {
|
||||||
|
cb(err);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
pipe(runner);
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('test:server_side:safe', ['test:prepare:build'], (cb) => {
|
||||||
|
let runner = exec(
|
||||||
|
testBin('mocha test/server_side'),
|
||||||
|
(err, stdout, stderr) => {
|
||||||
|
testResults.push({
|
||||||
|
suite: 'Servser Side Specs\t',
|
||||||
|
pass: testCount(stdout, /(\d+) passing/),
|
||||||
|
fail: testCount(stderr, /(\d+) failing/),
|
||||||
|
pend: testCount(stdout, /(\d+) pending/)
|
||||||
|
});
|
||||||
|
cb();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
pipe(runner);
|
||||||
|
});
|
||||||
|
|
||||||
gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
|
gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
|
||||||
let runner = exec(
|
let runner = exec(
|
||||||
@@ -193,6 +218,7 @@ gulp.task('test:e2e:safe', ['test:prepare'], (cb) => {
|
|||||||
|
|
||||||
gulp.task('test', [
|
gulp.task('test', [
|
||||||
'test:common:safe',
|
'test:common:safe',
|
||||||
|
'test:server_side:safe',
|
||||||
'test:karma:safe',
|
'test:karma:safe',
|
||||||
'test:api:safe',
|
'test:api:safe',
|
||||||
'test:e2e:safe'
|
'test:e2e:safe'
|
||||||
|
|||||||
Reference in New Issue
Block a user