Skip to content

Commit 976a84e

Browse files
Add outputs for test run results in action.yml
1 parent bf83470 commit 976a84e

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

action.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,56 @@ inputs:
3232
required: false
3333
default: '.'
3434

35+
outputs:
36+
Outcome:
37+
description: |
38+
The outcome of the test run.
39+
value: ${{ steps.test.outcome }}
40+
Conclusion:
41+
description: |
42+
The conclusion of the test run.
43+
value: ${{ steps.test.conclusion }}
44+
Executed:
45+
description: |
46+
Whether tests were executed.
47+
value: ${{ steps.test.outputs.Executed }}
48+
Result:
49+
description: |
50+
Overall result of the Pester test run (e.g., Passed, Failed).
51+
value: ${{ steps.test.outputs.Result }}
52+
FailedCount:
53+
description: |
54+
Number of failed tests.
55+
value: ${{ steps.test.outputs.FailedCount }}
56+
FailedBlocksCount:
57+
description: |
58+
Number of failed blocks.
59+
value: ${{ steps.test.outputs.FailedBlocksCount }}
60+
FailedContainersCount:
61+
description: |
62+
Number of failed containers.
63+
value: ${{ steps.test.outputs.FailedContainersCount }}
64+
PassedCount:
65+
description: |
66+
Number of passed tests.
67+
value: ${{ steps.test.outputs.PassedCount }}
68+
SkippedCount:
69+
description: |
70+
Number of skipped tests.
71+
value: ${{ steps.test.outputs.SkippedCount }}
72+
InconclusiveCount:
73+
description: |
74+
Number of inconclusive tests.
75+
value: ${{ steps.test.outputs.InconclusiveCount }}
76+
NotRunCount:
77+
description: |
78+
Number of tests not run.
79+
value: ${{ steps.test.outputs.NotRunCount }}
80+
TotalCount:
81+
description: |
82+
Total count of tests.
83+
value: ${{ steps.test.outputs.TotalCount }}
84+
3585
runs:
3686
using: composite
3787
steps:
@@ -66,6 +116,7 @@ runs:
66116
Version: ${{ inputs.Version }}
67117
WorkingDirectory: ${{ inputs.WorkingDirectory }}
68118
TestResult_TestSuiteName: ${{ inputs.Settings }}-${{ runner.os }}
119+
StepSummary_Enabled: true
69120
CodeCoverage_CoveragePercentTarget: 0
70121
Path: ${{ fromJson(steps.paths.outputs.result).TestPath }}
71122
Run_Path: ${{ fromJson(steps.paths.outputs.result).CodePath }}

0 commit comments

Comments
 (0)