mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-28 11:42:29 +01:00
Make test groups depend on specific test:prepare tasks
This commit is contained in:
@@ -37,7 +37,7 @@ gulp.task('test:prepare', [
|
|||||||
'test:prepare:webdriver'
|
'test:prepare:webdriver'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
gulp.task('test:common', ['test:prepare'], (cb) => {
|
gulp.task('test:common', ['test:prepare:build'], (cb) => {
|
||||||
let runner = exec(
|
let runner = exec(
|
||||||
testBin('mocha test/common'), cb
|
testBin('mocha test/common'), cb
|
||||||
);
|
);
|
||||||
@@ -45,14 +45,14 @@ gulp.task('test:common', ['test:prepare'], (cb) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
gulp.task('test:api', ['test:prepare'], (cb) => {
|
gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
|
||||||
let runner = exec(
|
let runner = exec(
|
||||||
testBin('mocha test/api'), cb
|
testBin('mocha test/api'), cb
|
||||||
);
|
);
|
||||||
pipe(runner);
|
pipe(runner);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('test:karma', ['test:prepare'], (cb) => {
|
gulp.task('test:karma', ['test:prepare:build'], (cb) => {
|
||||||
let runner = exec(
|
let runner = exec(
|
||||||
testBin('karma start --single-run'), cb
|
testBin('karma start --single-run'), cb
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user