-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, scorecard's XUnit output does not conform to any XUnit schema. This makes the scorecard XUnit output conform with the XUnit schema defined by the Jenkins XUnit plugin. This is sample output from running scorecard against the sample Go v3 Memcached operator: ```xml <testsuites name="scorecard"> <testsuite name="olm-bundle-validation-test" tests="1" skipped="0" failures="0" errors="0"> <properties> <property name="spec.image" value="quay.io/operator-framework/scorecard-test:v1.19.0"></property> <property name="spec.entrypoint" value="scorecard-test olm-bundle-validation"></property> <property name="labels.test" value="olm-bundle-validation-test"></property> </properties> <testcase name="olm-bundle-validation" time="0001-01-01T00:00:00Z"> <system-out>time="2022-04-12T19:21:52Z" level=debug msg="Found manifests directory" name=bundle-test
time="2022-04-12T19:21:52Z" level=debug msg="Found metadata directory" name=bundle-test
time="2022-04-12T19:21:52Z" level=debug msg="Getting mediaType info from manifests directory" name=bundle-test
time="2022-04-12T19:21:52Z" level=debug msg="Found annotations file" name=bundle-test
time="2022-04-12T19:21:52Z" level=debug msg="Could not find optional dependencies file" name=bundle-test
</system-out> </testcase> </testsuite> <!-- Some suites omitted for readability --> </testsuites> ``` The full output can be recreated by installing the `operator-sdk` tool built from this commit and running scorecard against the sample Go v3 memcached operator: ``` cd /path/to/operator-sdk make install operator-sdk scorecard testdata/go/v3/memcached-operator ``` The XUnit XSD schema can be found here: https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd The tool used to validate the output against the schema can be found here: https://www.freeformatter.com/xml-validator-xsd.html Signed-off-by: Ryan King <[email protected]>
- Loading branch information
Showing
2 changed files
with
117 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters