docs/articles/nunit/technical-notes/usage/Test-Result-XML-Format.md
<test-run>The required root element for any NUnit 3.0 test result file.
<command-line>, <filter>, <test-suite><command-line>Holds a CDATA section containing the text of the command used to run the tests.
<test-run><filter>The XML representation of the filter used to execute tests. This element is also used as a fragment in passing the filter to a runner and by the NUnit 3.0 framework and driver.
<test-run><or>, <and>, <not>, <id>, <test>,
<class>, <method>, <cat><or>Represents a composite filter that contains other filters. At least one of the contained filters must pass in order for this filter to pass.
<filter>, <or>, <and>, <not><or>, <and>, <not>, <id>, <test>,
<class>, <method>, <cat>, <prop><and>Represents a composite filter that contains other filters. All of the contained filters must pass in order for this filter to pass.
<filter>, <or>, <and>, <not><or>, <and>, <not>, <id>, <test>,
<class>, <method>, <cat>, <prop><not>Represents a composite filter that contains wraps a single base filters. The base filter must fail in order for this filter to pass.
<filter>, <or>, <and>, <not><or>, <and>, <not>, <id>, <test>,
<class>, <method>, <cat>, <prop><id>Represents a filter that examines the test id, which is generated by NUnit.
<test><filter>, <or>, <and>, <not><class><filter>, <or>, <and>, <not><method><filter>, <or>, <and>, <not><prop><filter>, <or>, <and>, <not><cat><test-suite><test-run>, <test-suite><environment>, <settings>, <properties>,
<reason>, <failure>, <output>, <attachments>,
<test-suite>, <test-case>type is equal to
"TestFixture".<environment>Describes the environment in which the tests in a particular assembly are being run.
<test-suite> (Assembly level only)framework-version The version of the nunit framework in use.clr-version The runtime version under which the tests are running, taken from Environment.Version.os-version A text string describing the operating system running the tests, taken from Environment.OsVersion.platform The platform id, taken from Environment.OsVersion.Platform.cwd The current working directory path, taken from Environment.CurrentDirectory.machine-name The machine name, taken from Environment.MachineName.user The user id, taken from Environment.UserName.user-domain The user domain, taken from Environment.UserDomainName.culture The current culture, taken from CultureInfo.CurrentCulture.uiculture The current UI culture, taken from CultureInfo.CurrentUICulture.os-architecture The architecture, taken from GetProcessorArchitecture().<settings>Settings used by the engine for executing an assembly. These are taken from the supplied settings in the TestPackage
supplemented by default settings created by the engine itself.
<test-suite> (Assembly level only)<setting><setting>A single setting
<settings><test-case><test-suite><properties>, <reason>, <failure>,
<output>, <attachments>id The unique id of this test. Coded as "mmm-nnn" where the part before the hyphen represents the assembly and the
part after it represents a test in that assembly. Currently, mmm and nnn are ints, but that is merely an accident of
the implementation and should not be relied on.name The display name of the test as generated by NUnit or, in the case of some parameterized tests, specified by
the user.fullname The full name of the test as generated by NUnit.methodname The name of the method representing the test case.classname The full name of the class in which this test case appears.runstate An indicator of whether the suite is runnable. Value may be NotRunnable, Runnable, Explicit, Skipped or
Ignored. NotRunnable means there is an error in how the test is expressed in code, for example, the signature may be
wrong. Explicit, Skipped and Ignored are set by attributes on the test.seed The seed used to generate random arguments and other values for this test.result The basic result of the test. May be Passed, Failed, Inconclusive or Skipped.label Additional labeling information about the result. In principle, this may be any string value and is combined
with the result to give a more precise reason for failure. Currently, NUnit may use the following labels in
combination with the Failure result: Error, Cancelled or Invalid. It may use the following labels in combination
with a Skipped result: Ignored or Explicit. Additional values may be added in future releases or supplied by
extensions, so code that processes a result file should be prepared to deal with any label or none at all.site Optional element indicating where a failure occurred. Values are Test, SetUp, TearDown, Parent or Child.
Default is Test and the attribute does not normally appear in that case.start-time The UTC time that the test started.end-time The UTC time that the test ended.duration The duration of the test in seconds, expressed as a real number.asserts The number of asserts executed by the test.<properties>Optional element containing any properties assigned to the test case or suite.
<test-suite>, <test-case><property><property>A single property
<properties><reason>Optional element that may appear on tests or suites that were not executed. The element may also appear on tests that
were short circuited using Assert.Pass. Contains a message giving the reason for skipping or short circuiting the
test.
<test-suite>, <test-case><message><failure>Optional element that appears on all tests or suites with a result of 'Failed'. Optionally contains the error message and/or a stack trace.
<test-suite>, <test-case><message>, <stack-trace><assertions><test-suite>, <test-case><assertion><assertion><assertions><message>, <stack-trace><message>Optional element with a CDATA section containing a message relating to the test's result.
<failure>, <reason>, <assertion><stack-trace>Optional element with a CDATA section containing a stack-trace of the location where a test failed.
<failure>, <assertion><output>Optional element that appears on tests or suites that produce text output. The output may be intercepted from writes to the console or captured directly when the test writes to the TestContext. It is contained in a CDATA section.
<test-suite>, <test-case><attachments>Optional element that appears when files are attached to a test. Contains a list of <attachment> elements.
<test-suite>, <test-case><attachment><attachment>Groups together the file path and description of a test attachment.
<attachments><filePath>, <description><filePath>Contains the file path for the attachment. Paths will be fully rooted.
<attachment><description>Optional element that contains the user's description of the attachment. It is contained in a CDATA section.
<attachment>