Skip to content

Commit aa470e6

Browse files
committed
fix: use formatDurationFromTimes for current duration in summary-delta-table
1 parent 6eb115f commit aa470e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/reports/summary-delta-table.hbs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
| **Tests 📝** | **Passed ✅** | **Failed ❌** | **Skipped ⏭️** | **Other ❓** | **Flaky 🍂** | **Duration ⏱️** |
33
| --- | --- | --- | --- | --- | --- | --- |
4-
| **{{report.results.summary.tests}}**{{#if report.insights.extra.summary.tests.change}}    *{{#if (gt report.insights.extra.summary.tests.change 0)}}↑{{report.insights.extra.summary.tests.change}}{{else}}↓{{abs report.insights.extra.summary.tests.change}}{{/if}}*{{/if}} | **{{report.results.summary.passed}}**{{#if report.insights.extra.summary.passed.change}}    *{{#if (gt report.insights.extra.summary.passed.change 0)}}↑{{report.insights.extra.summary.passed.change}}{{else}}↓{{abs report.insights.extra.summary.passed.change}}{{/if}}*{{/if}} | **{{report.results.summary.failed}}**{{#if report.insights.extra.summary.failed.change}}    *{{#if (gt report.insights.extra.summary.failed.change 0)}}↑{{report.insights.extra.summary.failed.change}}{{else}}↓{{abs report.insights.extra.summary.failed.change}}{{/if}}*{{/if}} | **{{addAll ctrf.summary.skipped ctrf.summary.pending}}**{{#if report.insights.extra.summary.skipped.change}}    *{{#if (gt report.insights.extra.summary.skipped.change 0)}}↑{{report.insights.extra.summary.skipped.change}}{{else}}↓{{abs report.insights.extra.summary.skipped.change}}{{/if}}*{{/if}} | **{{report.results.summary.other}}**{{#if report.insights.extra.summary.other.change}}    *{{#if (gt report.insights.extra.summary.other.change 0)}}↑{{report.insights.extra.summary.other.change}}{{else}}↓{{abs report.insights.extra.summary.other.change}}{{/if}}*{{/if}} | **{{countFlakyTests ctrf.tests}}**{{#if report.insights.extra.summary.flaky.change}}    *{{#if (gt report.insights.extra.summary.flaky.change 0)}}↑{{report.insights.extra.summary.flaky.change}}{{else}}↓{{abs report.insights.extra.summary.flaky.change}}{{/if}}*{{/if}} | **{{formatDuration report.insights.extra.summary.duration.current}}**{{#if report.insights.extra.summary.duration.change}}    *{{#if (gt report.insights.extra.summary.duration.change 0)}}↑{{formatDuration report.insights.extra.summary.duration.change}}{{else}}↓{{formatDuration (abs report.insights.extra.summary.duration.change)}}{{/if}}*{{/if}} |
4+
| **{{report.results.summary.tests}}**{{#if report.insights.extra.summary.tests.change}}    *{{#if (gt report.insights.extra.summary.tests.change 0)}}↑{{report.insights.extra.summary.tests.change}}{{else}}↓{{abs report.insights.extra.summary.tests.change}}{{/if}}*{{/if}} | **{{report.results.summary.passed}}**{{#if report.insights.extra.summary.passed.change}}    *{{#if (gt report.insights.extra.summary.passed.change 0)}}↑{{report.insights.extra.summary.passed.change}}{{else}}↓{{abs report.insights.extra.summary.passed.change}}{{/if}}*{{/if}} | **{{report.results.summary.failed}}**{{#if report.insights.extra.summary.failed.change}}    *{{#if (gt report.insights.extra.summary.failed.change 0)}}↑{{report.insights.extra.summary.failed.change}}{{else}}↓{{abs report.insights.extra.summary.failed.change}}{{/if}}*{{/if}} | **{{addAll ctrf.summary.skipped ctrf.summary.pending}}**{{#if report.insights.extra.summary.skipped.change}}    *{{#if (gt report.insights.extra.summary.skipped.change 0)}}↑{{report.insights.extra.summary.skipped.change}}{{else}}↓{{abs report.insights.extra.summary.skipped.change}}{{/if}}*{{/if}} | **{{report.results.summary.other}}**{{#if report.insights.extra.summary.other.change}}    *{{#if (gt report.insights.extra.summary.other.change 0)}}↑{{report.insights.extra.summary.other.change}}{{else}}↓{{abs report.insights.extra.summary.other.change}}{{/if}}*{{/if}} | **{{countFlakyTests ctrf.tests}}**{{#if report.insights.extra.summary.flaky.change}}    *{{#if (gt report.insights.extra.summary.flaky.change 0)}}↑{{report.insights.extra.summary.flaky.change}}{{else}}↓{{abs report.insights.extra.summary.flaky.change}}{{/if}}*{{/if}} | **{{formatDurationFromTimes ctrf.summary.start ctrf.summary.stop}}**{{#if report.insights.extra.summary.duration.change}}    *{{#if (gt report.insights.extra.summary.duration.change 0)}}↑{{formatDuration report.insights.extra.summary.duration.change}}{{else}}↓{{formatDuration (abs report.insights.extra.summary.duration.change)}}{{/if}}*{{/if}} |
55

0 commit comments

Comments
 (0)