mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Merge branch 'develop' into api-v3
This commit is contained in:
@@ -272,9 +272,6 @@ gulp.task('test:e2e', ['test:prepare', 'test:prepare:server'], (cb) => {
|
||||
let runner = exec(
|
||||
'npm run test:e2e',
|
||||
(err, stdout, stderr) => {
|
||||
/*
|
||||
* Note: As it stands, protractor wont report pending specs
|
||||
*/
|
||||
support.forEach(kill);
|
||||
cb(err);
|
||||
}
|
||||
@@ -296,15 +293,13 @@ gulp.task('test:e2e:safe', ['test:prepare', 'test:prepare:server'], (cb) => {
|
||||
let runner = exec(
|
||||
'npm run test:e2e',
|
||||
(err, stdout, stderr) => {
|
||||
/*
|
||||
* Note: As it stands, protractor wont report pending specs
|
||||
*/
|
||||
let match = stdout.match(/(\d+) tests?.*(\d) failures?/);
|
||||
|
||||
testResults.push({
|
||||
suite: 'End-to-End Specs',
|
||||
pass: parseInt(match[1]) - parseInt(match[2]),
|
||||
fail: parseInt(match[2]),
|
||||
pend: 0
|
||||
suite: 'End-to-End Specs\t',
|
||||
pass: testCount(stdout, /(\d+) passing/),
|
||||
fail: testCount(stdout, /(\d+) failing/),
|
||||
pend: testCount(stdout, /(\d+) pending/)
|
||||
});
|
||||
support.forEach(kill);
|
||||
cb();
|
||||
|
||||
Reference in New Issue
Block a user