You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 39f9f28
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Emit ::warning annotations for skipped tests in GitHubActionsReport by @Evangelink in #9641 (backport to rel/4.3) (#9644)
Co-authored-by: Amaury Levé <amauryleve@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This package extends Microsoft.Testing.Platform with:
16
16
17
17
-**Per-assembly log groups**: emits `::group::` / `::endgroup::` workflow commands so each test assembly's output is collapsed by default in the runner UI
18
-
-**Failure annotations**: emits an `::error` workflow command for each failing test so failures appear in the workflow Annotations tab and, when the source location can be resolved, on the pull request's "Files changed" diff gutter
18
+
-**Failure annotations**: emits an `::error` workflow command for each failing test so failures appear in the workflow Annotations tab and, when the source location can be resolved, on the pull request's "Files changed" diff gutter. Skipped tests are surfaced as title-only `::warning` annotations so they are visible in the Annotations tab too
19
19
-**Job summary**: appends a markdown roll-up (totals, failures, slowest tests) to the file pointed to by `GITHUB_STEP_SUMMARY`, which GitHub renders on the workflow run summary page
20
20
-**Slow-test notices**: emits a `::notice` workflow command for any test still running past a threshold (default 60 seconds)
21
21
@@ -25,7 +25,7 @@ The extension activates when the test run is on GitHub Actions (`GITHUB_ACTIONS=
25
25
|---|---|---|
26
26
|`--report-gh`| Master switch that turns the extension on (required, in addition to running on GitHub Actions) | off |
27
27
|`--report-gh-groups on\|off`| Per-assembly log groups | on |
28
-
|`--report-gh-annotations on\|off`| Failure annotations | on |
28
+
|`--report-gh-annotations on\|off`| Failure and skip annotations | on |
29
29
|`--report-gh-step-summary on\|off`| Markdown job summary | on |
30
30
|`--report-gh-slow-test-notices on\|off`| Slow-test notices | on |
31
31
|`--report-gh-slow-test-threshold <duration>`| Time before a slow-test notice is emitted; accepts a bare number of seconds or a unit suffix such as `90s`, `2m`, `1.5h`| 60s |
<value>Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</value>
65
+
<value>Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</value>
<value>Enable or disable writing a markdown job summary to the GITHUB_STEP_SUMMARY file. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</value>
Copy file name to clipboardExpand all lines: src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/Resources/xlf/GitHubActionsResources.cs.xlf
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
<note>{0} is the fully qualified test name.</note>
9
9
</trans-unit>
10
10
<trans-unitid="AnnotationsOptionDescription">
11
-
<source>Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
-
<targetstate="new">Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
11
+
<source>Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
+
<targetstate="new">Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
<targetstate="new">The test failed without providing a failure message.</target>
48
48
<note />
49
49
</trans-unit>
50
+
<trans-unitid="NoSkipReasonFallback">
51
+
<source>The test was skipped without providing a reason.</source>
52
+
<targetstate="new">The test was skipped without providing a reason.</target>
53
+
<note />
54
+
</trans-unit>
50
55
<trans-unitid="OptionDescription">
51
56
<source>Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</source>
52
57
<targetstate="new">Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</target>
53
58
<note />
54
59
</trans-unit>
60
+
<trans-unitid="SkippedAnnotationTitle">
61
+
<source>Test skipped: {0}</source>
62
+
<targetstate="new">Test skipped: {0}</target>
63
+
<note>{0} is the fully qualified test name.</note>
Copy file name to clipboardExpand all lines: src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/Resources/xlf/GitHubActionsResources.de.xlf
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
<note>{0} is the fully qualified test name.</note>
9
9
</trans-unit>
10
10
<trans-unitid="AnnotationsOptionDescription">
11
-
<source>Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
-
<targetstate="new">Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
11
+
<source>Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
+
<targetstate="new">Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
<targetstate="new">The test failed without providing a failure message.</target>
48
48
<note />
49
49
</trans-unit>
50
+
<trans-unitid="NoSkipReasonFallback">
51
+
<source>The test was skipped without providing a reason.</source>
52
+
<targetstate="new">The test was skipped without providing a reason.</target>
53
+
<note />
54
+
</trans-unit>
50
55
<trans-unitid="OptionDescription">
51
56
<source>Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</source>
52
57
<targetstate="new">Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</target>
53
58
<note />
54
59
</trans-unit>
60
+
<trans-unitid="SkippedAnnotationTitle">
61
+
<source>Test skipped: {0}</source>
62
+
<targetstate="new">Test skipped: {0}</target>
63
+
<note>{0} is the fully qualified test name.</note>
Copy file name to clipboardExpand all lines: src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/Resources/xlf/GitHubActionsResources.es.xlf
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
<note>{0} is the fully qualified test name.</note>
9
9
</trans-unit>
10
10
<trans-unitid="AnnotationsOptionDescription">
11
-
<source>Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
-
<targetstate="new">Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
11
+
<source>Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
+
<targetstate="new">Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
<targetstate="new">The test failed without providing a failure message.</target>
48
48
<note />
49
49
</trans-unit>
50
+
<trans-unitid="NoSkipReasonFallback">
51
+
<source>The test was skipped without providing a reason.</source>
52
+
<targetstate="new">The test was skipped without providing a reason.</target>
53
+
<note />
54
+
</trans-unit>
50
55
<trans-unitid="OptionDescription">
51
56
<source>Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</source>
52
57
<targetstate="new">Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</target>
53
58
<note />
54
59
</trans-unit>
60
+
<trans-unitid="SkippedAnnotationTitle">
61
+
<source>Test skipped: {0}</source>
62
+
<targetstate="new">Test skipped: {0}</target>
63
+
<note>{0} is the fully qualified test name.</note>
Copy file name to clipboardExpand all lines: src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/Resources/xlf/GitHubActionsResources.fr.xlf
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
<note>{0} is the fully qualified test name.</note>
9
9
</trans-unit>
10
10
<trans-unitid="AnnotationsOptionDescription">
11
-
<source>Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
-
<targetstate="new">Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
11
+
<source>Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
+
<targetstate="new">Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
<targetstate="new">The test failed without providing a failure message.</target>
48
48
<note />
49
49
</trans-unit>
50
+
<trans-unitid="NoSkipReasonFallback">
51
+
<source>The test was skipped without providing a reason.</source>
52
+
<targetstate="new">The test was skipped without providing a reason.</target>
53
+
<note />
54
+
</trans-unit>
50
55
<trans-unitid="OptionDescription">
51
56
<source>Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</source>
52
57
<targetstate="new">Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</target>
53
58
<note />
54
59
</trans-unit>
60
+
<trans-unitid="SkippedAnnotationTitle">
61
+
<source>Test skipped: {0}</source>
62
+
<targetstate="new">Test skipped: {0}</target>
63
+
<note>{0} is the fully qualified test name.</note>
Copy file name to clipboardExpand all lines: src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/Resources/xlf/GitHubActionsResources.it.xlf
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
<note>{0} is the fully qualified test name.</note>
9
9
</trans-unit>
10
10
<trans-unitid="AnnotationsOptionDescription">
11
-
<source>Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
-
<targetstate="new">Enable or disable GitHub Actions failure annotations. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
11
+
<source>Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</source>
12
+
<targetstate="new">Enable or disable GitHub Actions annotations for failed and skipped tests. Valid values are 'on' (also accepts 'true', 'enable', '1') or 'off' (also accepts 'false', 'disable', '0'). Defaults to 'on' when running on GitHub Actions.</target>
<targetstate="new">The test failed without providing a failure message.</target>
48
48
<note />
49
49
</trans-unit>
50
+
<trans-unitid="NoSkipReasonFallback">
51
+
<source>The test was skipped without providing a reason.</source>
52
+
<targetstate="new">The test was skipped without providing a reason.</target>
53
+
<note />
54
+
</trans-unit>
50
55
<trans-unitid="OptionDescription">
51
56
<source>Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</source>
52
57
<targetstate="new">Enable GitHub Actions report generator to emit workflow commands so test runs produce a first-class experience on GitHub Actions.</target>
53
58
<note />
54
59
</trans-unit>
60
+
<trans-unitid="SkippedAnnotationTitle">
61
+
<source>Test skipped: {0}</source>
62
+
<targetstate="new">Test skipped: {0}</target>
63
+
<note>{0} is the fully qualified test name.</note>
0 commit comments