xUnit.net — v2 Assembly Results
The xUnit.net v2 shape: an <assemblies> root holding one assembly, whose tests are grouped into collections rather than classes. Result values are Pass, Fail and Skip with capital initials, which trips converters doing a case-sensitive comparison against the lowercase values every other format uses. Reports the same canonical run as the JUnit dialect files: 12 tests, 9 passed, 1 assertion failure, 1 error and 1 skip.
<?xml version="1.0" encoding="UTF-8"?>
<assemblies timestamp="2026-08-07T09:14:22">
<assembly name="/builds/novus/Checkout.Tests.dll" environment="64-bit .NET 8.0.7" test-framework="xUnit.net 2.9.0" run-date="2026-08-07" run-time="09:14:22" total="12" passed="9" failed="2" skipped="1" time="7.450" errors="0">
<errors/>
<collection total="5" passed="4" failed="1" skipped="0" name="Test collection for cart.PricingTest" time="3.744">
<test name="cart.PricingTest.appliesUnitPrice" type="cart.PricingTest" method="appliesUnitPrice" time="0.643" result="Pass"/>
<test name="cart.PricingTest.appliesQuantityMultiplier" type="cart.PricingTest" method="appliesQuantityMultiplier" time="0.659" result="Pass"/>
<test name="cart.PricingTest.roundsHalfUpAtTwoDecimals" type="cart.PricingTest" method="roundsHalfUpAtTwoDecimals" time="1.042" result="Pass"/>
<test name="cart.PricingTest.rejectsNegativeQuantity" type="cart.PricingTest" method="rejectsNegativeQuantity" time="1.048" result="Pass"/>
<test name="cart.PricingTest.appliesTaxToSubtotal" type="cart.PricingTest" method="appliesTaxToSubtotal" time="0.352" result="Fail">
<failure exception-type="java.lang.AssertionError">
<message><![CDATA[expected:<12.60> but was:<12.59>]]></message>
<stack-trace><![CDATA[java.lang.AssertionError: expected:<12.60> but was:<12.59>
at cart.PricingTest.appliesTaxToSubtotal(PricingTest.java:88)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
]]></stack-trace>
</failure>
</test>
</collection>
<collection total="4" passed="3" failed="0" skipped="1" name="Test collection for cart.DiscountTest" time="2.067">
<test name="cart.DiscountTest.appliesPercentageDiscount" type="cart.DiscountTest" method="appliesPercentageDiscount" time="0.147" result="Pass"/>
<test name="cart.DiscountTest.stacksDiscountsInDeclaredOrder" type="cart.DiscountTest" method="stacksDiscountsInDeclaredOrder" time="0.327" result="Pass"/>
<test name="cart.DiscountTest.ignoresExpiredCoupon" type="cart.DiscountTest" method="ignoresExpiredCoupon" time="0.893" result="Pass"/>
<test name="cart.DiscountTest.appliesLoyaltyTier" type="cart.DiscountTest" method="appliesLoyaltyTier" time="0.700" result="Skip">
<reason><![CDATA[loyalty tiers are disabled in the CI profile]]></reason>
</test>
</collection>
<collection total="3" passed="2" failed="1" skipped="0" name="Test collection for checkout.SessionTest" time="1.639">
<test name="checkout.SessionTest.createsSessionForNewCart" type="checkout.SessionTest" method="createsSessionForNewCart" time="0.783" result="Pass"/>
<test name="checkout.SessionTest.expiresSessionAfterTimeout" type="checkout.SessionTest" method="expiresSessionAfterTimeout" time="0.695" result="Fail">
<failure exception-type="java.net.ConnectException">
<message><![CDATA[Connection refused: sessions.example.com:5432]]></message>
<stack-trace><![CDATA[java.net.ConnectException: Connection refused: sessions.example.com:5432
at checkout.SessionStore.open(SessionStore.java:41)
at checkout.SessionTest.expiresSessionAfterTimeout(SessionTest.java:57)
]]></stack-trace>
</failure>
</test>
<test name="checkout.SessionTest.restoresCartOnResume" type="checkout.SessionTest" method="restoresCartOnResume" time="0.161" result="Pass"/>
</collection>
</assembly>
</assemblies>
Specifications
- Seed
- 61200
- Encoding
- UTF-8
- Line Endings
- LF
- Format
- xUnit.net v2 XML
- Total
- 12
- Passed
- 9
- Failed
- 2
- Skipped
- 1
- Root Element
- assemblies
- Collections
- 3
Testing contract
Expected to pass- Scenario
- Normalise xUnit.net result values against the other runners in the library.
- Expected result
- The values Pass, Fail and Skip map to passed, failed and skipped, giving 9, 2 and 1.
What is a .xml file?
XML (Extensible Markup Language) is a verbose, self-describing markup language using nested tags, attributes, and namespaces to represent structured, hierarchical data. It supports schemas, entities, and validation and underlies many document and data formats. It remains common in enterprise, publishing, and interchange contexts.
How to use this file
Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.
How to use this file for testing
“xUnit.net — v2 Assembly Results” is a deterministic Novus Examples fixture for Conversion testing, Log parsing, Error handling. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.
Documented properties for this file: seed 61200 · UTF-8 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
Test and coverage reports document their totals (suites, cases, passes, failures, skips, covered lines) in the spec table. Point your CI dashboard, coverage gate, or report converter at the file and assert those counts survive; format twins carry identical numbers so a conversion can be scored exactly.
Code examples
import xml.etree.ElementTree as ET
tree = ET.parse("xunit-net-v2-results.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])Related files
- trxMSTest — TRX Result FileThe `dotnet test` TRX document in full: Times, TestSettings, Results, TestDefinitions, TestEntries, TestLists and a ResultSummary with sixteen counters. Results and definitions are joined on GUIDs, so a converter that reads only <Results> loses every class name. Reports the same canonical run as the JUnit dialect files: 12 tests, 9 passed, 1 assertion failure, 1 error and 1 skip.

- xmlNUnit 3 — Test Result XMLThe NUnit 3 test-run document, with a nested Assembly/TestFixture suite tree, an environment element and per-case seeds. NUnit has no separate error outcome, so the errored case appears as Failed with label="Error" and the report reads failed=2. Reports the same canonical run as the JUnit dialect files: 12 tests, 9 passed, 1 assertion failure, 1 error and 1 skip.

- xmlRobot Framework — output.xmlRobot Framework's output.xml, in which every keyword call carries its own status element and a trailing statistics section restates the totals by tag and by suite. Robot 7 reports elapsed seconds rather than the endtime attribute older versions used, so schemaversion is what a reader must branch on. Reports the same canonical run as the JUnit dialect files: 12 tests, 9 passed, 1 assertion failure, 1 error and 1 skip.

- xmlCucumber JUnit XML — Checkout RunThe same six pickles reported as JUnit XML, which is what a BDD suite hands to a generic CI dashboard. One <testcase> per pickle means the three expanded outline rows appear as three tests with identical names — enough to break any store keyed on name alone.

- xmlFlaky Run — Network Dependency, Build #301 (errored)Build #301 of five consecutive runs of checkout.PaymentTest, in which capturesAuthorisedPayment is errored while the other five cases pass every time. The underlying cause is a real call to the fictional payments host instead of the stub. Read the whole family in build order to reproduce what a flake detector sees.

- xmlFlaky Run — Network Dependency, Build #302 (passing)Build #302 of five consecutive runs of checkout.PaymentTest, in which capturesAuthorisedPayment is passing while the other five cases pass every time. The underlying cause is a real call to the fictional payments host instead of the stub. Read the whole family in build order to reproduce what a flake detector sees.

Generated by generation/testing.py. Free for any use, no attribution required — license.