Skip to content

Commit 1bbb123

Browse files
committed
Enhance tests-changed report to include conditional display of test changes and improve formatting
1 parent 5f2d71a commit 1bbb123

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

dist/reports/tests-changed-table.hbs

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

src/reports/tests-changed-table.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
{{#if (and report.insights.extra.testsAdded report.insights.extra.testsRemoved)}}
12
{{#if (or (gt report.insights.extra.testsAdded.length 0) (gt report.insights.extra.testsRemoved.length 0))}}
23
**{{report.insights.extra.testsAdded.length}} new test{{#if (gt report.insights.extra.testsAdded.length 1)}}s{{/if}} added, {{report.insights.extra.testsRemoved.length}} removed**
4+
35
{{#if (gt report.insights.extra.testsAdded.length 0)}}
46
### Added ➕
57

@@ -19,8 +21,10 @@
1921
| {{name}} | {{#if suite}}{{join suite " > "}}{{else}}-{{/if}} |
2022
{{/each}}
2123
{{/if}}
22-
2324
{{else}}
24-
<p>No changes to tests detected ✨</p>
25+
No changes to tests detected ✨
26+
{{/if}}
27+
{{else}}
28+
No changes to tests detected ✨
2529
{{/if}}
2630

0 commit comments

Comments
 (0)