Skip to content

Commit 21fc277

Browse files
add delta to github report (#241)
1 parent 718a36a commit 21fc277

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

dist/reports/github.hbs

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/reports/github.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{{#if ctrf.summary.failed}}
2-
![failed](https://ctrf.io/assets/github/x-circle.svg) **{{ctrf.summary.failed}} failed**
2+
![failed](https://ctrf.io/assets/github/x-circle.svg) **{{ctrf.summary.failed}} failed**{{#if report.insights.extra.summary.failed.change}} *{{#if (gt report.insights.extra.summary.failed.change 0)}}{{report.insights.extra.summary.failed.change}}{{else if (lt report.insights.extra.summary.failed.change 0)}}{{abs report.insights.extra.summary.failed.change}}{{else}}±0{{/if}}*{{/if}}
33
{{/if}}
4-
![passed](https://ctrf.io/assets/github/check-circle.svg) **{{ctrf.summary.passed}} passed**
4+
![passed](https://ctrf.io/assets/github/check-circle.svg) **{{ctrf.summary.passed}} passed**{{#if report.insights.extra.summary.passed.change}} *{{#if (gt report.insights.extra.summary.passed.change 0)}}{{report.insights.extra.summary.passed.change}}{{else if (lt report.insights.extra.summary.passed.change 0)}}{{abs report.insights.extra.summary.passed.change}}{{else}}±0{{/if}}*{{/if}}
55
{{#if ctrf.summary.skipped}}
6-
![skipped](https://ctrf.io/assets/github/skip.svg) **{{ctrf.summary.skipped}} skipped**
6+
![skipped](https://ctrf.io/assets/github/skip.svg) **{{ctrf.summary.skipped}} skipped**{{#if report.insights.extra.summary.skipped.change}} *{{#if (gt report.insights.extra.summary.skipped.change 0)}}{{report.insights.extra.summary.skipped.change}}{{else if (lt report.insights.extra.summary.skipped.change 0)}}{{abs report.insights.extra.summary.skipped.change}}{{else}}±0{{/if}}*{{/if}}
77
{{/if}}
88
{{#if ctrf.summary.pending}}
9-
![pending](https://ctrf.io/assets/github/hourglass.svg) **{{ctrf.summary.pending}} pending**
9+
![pending](https://ctrf.io/assets/github/hourglass.svg) **{{ctrf.summary.pending}} pending**{{#if report.insights.extra.summary.pending.change}} *{{#if (gt report.insights.extra.summary.pending.change 0)}}{{report.insights.extra.summary.pending.change}}{{else if (lt report.insights.extra.summary.pending.change 0)}}{{abs report.insights.extra.summary.pending.change}}{{else}}±0{{/if}}*{{/if}}
1010
{{/if}}
1111
{{#if ctrf.summary.other}}
12-
![other](https://ctrf.io/assets/github/question.svg) **{{ctrf.summary.other}} other**
12+
![other](https://ctrf.io/assets/github/question.svg) **{{ctrf.summary.other}} other**{{#if report.insights.extra.summary.other.change}} *{{#if (gt report.insights.extra.summary.other.change 0)}}{{report.insights.extra.summary.other.change}}{{else if (lt report.insights.extra.summary.other.change 0)}}{{abs report.insights.extra.summary.other.change}}{{else}}±0{{/if}}*{{/if}}
1313
{{/if}}
1414
{{#if (countFlakyTests ctrf.tests)}}
15-
![alert](https://ctrf.io/assets/github/alert.svg) **{{countFlakyTests ctrf.tests}} flaky**
15+
![alert](https://ctrf.io/assets/github/alert.svg) **{{countFlakyTests ctrf.tests}} flaky**{{#if report.insights.extra.summary.flaky.change}} *{{#if (gt report.insights.extra.summary.flaky.change 0)}}{{report.insights.extra.summary.flaky.change}}{{else if (lt report.insights.extra.summary.flaky.change 0)}}{{abs report.insights.extra.summary.flaky.change}}{{else}}±0{{/if}}*{{/if}}
1616
{{/if}}
1717

1818
#### Details
1919

20-
![tests](https://ctrf.io/assets/github/beaker.svg) {{ctrf.summary.tests}} tests{{#if ctrf.summary.suites}} in {{ctrf.summary.suites}} suites{{/if}}
21-
![clock](https://ctrf.io/assets/github/clock.svg) {{formatDurationFromTimes ctrf.summary.start ctrf.summary.stop}}
20+
![tests](https://ctrf.io/assets/github/beaker.svg) {{ctrf.summary.tests}} tests{{#if ctrf.summary.suites}} in {{ctrf.summary.suites}} suites{{/if}}{{#if report.insights.extra.summary.tests.change}} *{{#if (gt report.insights.extra.summary.tests.change 0)}}{{report.insights.extra.summary.tests.change}}{{else if (lt report.insights.extra.summary.tests.change 0)}}{{abs report.insights.extra.summary.tests.change}}{{else}}±0{{/if}}*{{/if}}
21+
![clock](https://ctrf.io/assets/github/clock.svg) {{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 if (lt report.insights.extra.summary.duration.change 0)}}{{formatDuration (abs report.insights.extra.summary.duration.change)}}{{else}}±0{{/if}}*{{/if}}
2222
{{#if ctrf.tool.name}}
2323
![tool](https://ctrf.io/assets/github/tools.svg) {{ctrf.tool.name}}
2424
{{/if}}

0 commit comments

Comments
 (0)