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
Copy file name to clipboardExpand all lines: README.md
+16-11Lines changed: 16 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ steps:
14
14
- wait: ~
15
15
continue_on_failure: true
16
16
- plugins:
17
-
- junit-annotate#v2.1.0:
17
+
- junit-annotate#v2.2.0:
18
18
artifacts: tmp/junit-*.xml
19
19
```
20
20
@@ -30,37 +30,42 @@ Example: `tmp/junit-*.xml`
30
30
31
31
Forces the creation of the annotation even when no failures or errors are found
32
32
33
+
### `context` (optional)
34
+
35
+
Default: `junit`
36
+
37
+
The buildkite annotation context to use. Useful to differentiate multiple runs of this plugin in a single pipeline.
38
+
33
39
### `job-uuid-file-pattern` (optional)
40
+
34
41
Default: `-(.*).xml`
35
42
36
-
The regular expression (with capture group) that matches the job UUID in the junit file names. This is used to create the job links in the annotation.
43
+
The regular expression (with capture group) that matches the job UUID in the junit file names. This is used to create the job links in the annotation.
37
44
38
45
To use this, configure your test reporter to embed the `$BUILDKITE_JOB_ID` environment variable into your junit file names. For example `"junit-buildkite-job-$BUILDKITE_JOB_ID.xml"`.
39
46
40
47
### `failure-format` (optional)
41
-
Default: `classname`
42
48
43
49
This setting controls the format of your failed test in the main annotation summary.
44
50
45
51
There are two options for this:
46
-
* `classname`
52
+
* `classname` (the default)
47
53
* displays: `MyClass::UnderTest text of the failed expectation in path.to.my_class.under_test`
48
54
* `file`
49
55
* displays: `MyClass::UnderTest text of the failed expectation in path/to/my_class/under_test.file_ext`
50
56
51
57
### `fail-build-on-error` (optional)
58
+
52
59
Default: `false`
53
60
54
-
If this setting is true and any errors are found in the JUnit XML files during
55
-
parsing, the annotation step will exit with a non-zero value, which should cause
56
-
the build to fail.
61
+
If this setting is true and any errors are found in the JUnit XML files during parsing, the annotation step will exit with a non-zero value, which should cause the build to fail.
57
62
58
-
### `context` (optional)
59
-
Default: `junit`
63
+
### `min-tests` (optional, integer)
60
64
61
-
The buildkite annotation context to use. Useful to differentiate multiple runs of this plugin in a single pipeline.
65
+
Minimum amount of run tests that need to be analyzed or a failure will be reported. It is useful to ensure that tests are actually run and report files to analyze do contain information.
62
66
63
67
### `report-slowest` (optional)
68
+
64
69
Default: `0`
65
70
66
71
Include the specified number of slowest tests in the annotation. The annotation will always be shown.
@@ -93,7 +98,7 @@ To test your plugin in your builds prior to opening a pull request, you can refe
0 commit comments