Skip to content

Commit 2f4dcf6

Browse files
committed
style: improve report table formatting and add more details to slowest tests
1 parent feae206 commit 2f4dcf6

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

dist/reports/insights-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.

dist/reports/slowest-table.hbs

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

src/reports/insights-table.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
|----------------------|-------------------|----------------|-------------------|
33
| {{ctrf.summary.extra.averageTestsPerRun}} | {{ctrf.summary.extra.totalFlakyTests}} | {{ctrf.summary.extra.totalFailures}} | {{formatDuration 0 ctrf.summary.extra.slowestTest.duration}} |
44

5-
*Measured over {{ctrf.summary.extra.reportsUsed}} runs.*
5+
<sub><i>Measured over {{ctrf.summary.extra.reportsUsed}} runs.</i></sub>

src/reports/slowest-table.hbs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
| Test Name | Average Duration |
2-
|-----------|-----------------|
1+
### ⏱️ Slowest Tests (p95)
2+
3+
| Test Name | Average Duration | Total Runs | Failures | Fail Rate |
4+
|-----------|-----------------|------------|----------|-----------|
35
{{#each ctrf.summary.extra.slowestTests}}
46
{{#if extra.avgDuration}}
5-
| {{name}} | {{formatDuration 0 extra.avgDuration}} |
7+
| {{name}} | {{formatDuration 0 extra.avgDuration}} | {{extra.totalAttempts}} | {{extra.failedCount}} | {{formatRate extra.failRate}}% |
68
{{/if}}
79
{{/each}}
810

9-
*Measured over {{ctrf.summary.extra.reportsUsed}} runs.*
11+
<sub><i>Measured over {{ctrf.summary.extra.reportsUsed}} runs.</i></sub>

0 commit comments

Comments
 (0)