Skip to content

Commit 4f214e9

Browse files
committed
counting passed_with_skipped seperately
1 parent 48a0d2c commit 4f214e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/helpers/sync/failedSpecsDetails.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ let getSpecStatus = (specStatus) => {
8080
switch(specStatus.toLowerCase()) {
8181
case 'failed': return chalk.red(specStatus);
8282
case 'pending':
83-
case 'passed_with_pending':
8483
case 'skipped':
8584
case 'passed_with_skipped': return chalk.blueBright(specStatus);
8685
default: return chalk.yellow(specStatus);

bin/helpers/sync/specsSummary.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ let printSpecsRunSummary = (data, machines) => {
2323
failed: 0,
2424
passed: 0,
2525
skipped: 0,
26+
passed_with_skipped: 0,
2627
pending: 0
2728
};
2829

2930
data.specs.forEach((spec) => {
3031
specSummaryCount(summary, spec.status.toLowerCase());
3132
});
3233

33-
logger.info(`Total tests: ${summary.total}, passed: ${summary.passed}, failed: ${summary.failed}, skipped: ${summary.skipped}, pending: ${summary.pending}`);
34+
logger.info(`Total tests: ${summary.total}, passed: ${summary.passed}, failed: ${summary.failed}, skipped: ${summary.skipped}, passed_with_skipped: ${summary.passed_with_skipped}, pending: ${summary.pending}`);
3435
logger.info(`Done in ${data.duration/1000} seconds using ${machines} machines\n`);
3536

3637
resolve(data.exitCode);
@@ -43,10 +44,11 @@ let specSummaryCount = (summary, status) => {
4344
summary.failed++;
4445
break;
4546
case "passed_with_skipped":
47+
summary.passed_with_skipped++;
48+
break;
4649
case 'skipped':
4750
summary.skipped++;
4851
break;
49-
case "passed_with_pending":
5052
case "pending":
5153
summary.pending++;
5254
break;

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ let getStatus = (status) => {
221221
return chalk.green("✔");
222222
case "failed":
223223
return chalk.red("✘");
224-
case "passed_with_pending":
225224
case "passed_with_skipped":
226225
return chalk.blueBright("✔");
227226
default:

0 commit comments

Comments
 (0)