Skip to content

Commit 65d66a6

Browse files
Merge pull request #119 from ctrf-io/feat/insights
Feat/insights
2 parents 5bbfc63 + 9b31378 commit 65d66a6

File tree

17 files changed

+537
-11
lines changed

17 files changed

+537
-11
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ jobs:
2424
uses: ./
2525
with:
2626
report-path: './ctrf/*.json'
27-
status-check: true
28-
status-check-name: 'Jest Unit Tests'
27+
summary-report: true
28+
failed-report: true
29+
flaky-report: true
30+
insights-report: true
31+
fail-rate-report: true
32+
flaky-rate-report: true
33+
slowest-report: true
34+
previous-results-report: true
35+
use-suite-name: true
2936
upload-artifact: true
3037
env:
3138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -197,6 +204,8 @@ jobs:
197204
previous-results-report: true
198205
flaky-rate-report: true
199206
fail-rate-report: true
207+
insights-report: true
208+
slowest-report: true
200209
annotate: false
201210
env:
202211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Add the following to your workflow file:
289289

290290
## GitHub Token
291291

292-
`previous-results-report`, `flaky-rate-report` and `fail-rate-report` need a
292+
`previous-results-report`, `insights-report`, `flaky-rate-report`, `fail-rate-report`, and `slowest-report` need a
293293
GITHUB_TOKEN:
294294

295295
```yaml

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ inputs:
7474
description: 'Include the suite list report.'
7575
required: false
7676
default: false
77+
insights-report:
78+
description:
79+
'Include the insights report showing test metrics and statistics.'
80+
required: false
81+
default: false
82+
slowest-report:
83+
description:
84+
'Include a report showing the top 10 slowest tests by average duration.'
85+
required: false
86+
default: false
7787
pull-request-report:
7888
description: 'Include the pull request report.'
7989
required: false

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

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

dist/index.js.map

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/insights-table.hbs

Lines changed: 5 additions & 0 deletions
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: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)