Skip to content

Instantly share code, notes, and snippets.

@metafeather
Created July 13, 2010 13:08
Show Gist options
  • Save metafeather/473817 to your computer and use it in GitHub Desktop.
Save metafeather/473817 to your computer and use it in GitHub Desktop.
# Relax NG compact schema for Ant created JUnit XML files
start = testsuite | testsuites
property = element property {
attribute name {text},
attribute value {text}
}
properties = element properties {
property*
}
badtest = element (failure|error) {
attribute message {text},
attribute type {text},
text
}
testcase = element testcase {
attribute classname {text},
attribute name {text},
attribute time {text},
attribute status {text} ?,
badtest?
}
testsuite = element testsuite {
attribute errors {xsd:integer},
attribute failures {xsd:integer},
attribute hostname {text}?,
attribute name {text},
attribute tests {xsd:integer},
attribute time {xsd:double},
attribute timestamp {xsd:dateTime}?,
attribute id {text} ?, # junitreport attribute
attribute package {text} ?, # junitreport attribute
attribute disabled {text} ?,
properties ?,
testcase*,
element system-out {text} ?,
element system-err {text} ?
}
testsuites = element testsuites {
attribute * {text} *,
testsuite*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment