Skip to content

Commit f62caa6

Browse files
Ish Shahmichaelryanpeter
andauthored
Add xunit sample to Scorecard Docs (#5762)
Co-authored-by: Michael Peter <[email protected]>
1 parent 2d0aae8 commit f62caa6

File tree

1 file changed

+20
-0
lines changed
  • website/content/en/docs/testing-operators/scorecard

1 file changed

+20
-0
lines changed

website/content/en/docs/testing-operators/scorecard/_index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,26 @@ See an example of the JSON format produced by a scorecard test:
226226
}
227227
```
228228

229+
### XML format
230+
231+
See the example below for the results of a scorecard test formatted in XML. The scorecard tool formats the XML output for XUnit schema compatability. This format makes it easier for post-processing the test results.
232+
233+
```xml
234+
<testsuites name="scorecard">
235+
<testsuite name="olm-bundle-validation-test" tests="1" skipped="0" failures="0" errors="0">
236+
<properties>
237+
<property name="spec.image" value="quay.io/operator-framework/scorecard-test:v1.19.0"></property>
238+
<property name="spec.entrypoint" value="scorecard-test olm-bundle-validation"></property>
239+
<property name="labels.test" value="olm-bundle-validation-test"></property>
240+
</properties>
241+
<testcase name="olm-bundle-validation" time="0001-01-01T00:00:00Z">
242+
<system-out>time=&#34;2022-04-12T19:21:52Z&#34; level=debug msg=&#34;Found manifests directory&#34; name=bundle-test&#xA;time=&#34;2022-04-12T19:21:52Z&#34; level=debug msg=&#34;Found metadata directory&#34; name=bundle-test&#xA;time=&#34;2022-04-12T19:21:52Z&#34; level=debug msg=&#34;Getting mediaType info from manifests directory&#34; name=bundle-test&#xA;time=&#34;2022-04-12T19:21:52Z&#34; level=debug msg=&#34;Found annotations file&#34; name=bundle-test&#xA;time=&#34;2022-04-12T19:21:52Z&#34; level=debug msg=&#34;Could not find optional dependencies file&#34; name=bundle-test&#xA;</system-out>
243+
</testcase>
244+
</testsuite>
245+
<!-- Some suites omitted for readability -->
246+
</testsuites>
247+
```
248+
229249
### Text format
230250

231251
See an example of the text format produced by a scorecard test:

0 commit comments

Comments
 (0)