XSD Jenkins xUnit plugin (unofficial) · junit-10.xsd

JUnit XML report

The JUnit XML test report that CI systems read (Jenkins, GitLab, GitHub Actions reporters).

About

JUnit XML has no official schema: each test tool writes its own variant. This is the schema the Jenkins xUnit plugin validates reports against, and one of the most used descriptions of the format.

Good to know

  • Tools add attributes this schema does not know (for example skipped on testsuites, or file and line on testcase). A report flagged here may still be read fine by your CI.
  • The example is by xmlvalid.com.

Files

1 file · 6.4 KB

Example document

TEST-report.xml · 1.1 KB · valid against this schema

In CI and from code

The same schema by its name, junit-xml, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema junit-xml
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: junit-xml
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=junit-xml

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups