MSTest — TRX Result File
The `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.
<?xml version="1.0" encoding="UTF-8"?>
<TestRun id="74e8e0c3-35ca-2389-64be-1843586becb6" name="sample@ci-runner-04 2026-08-07 09:14:22" runUser="sample" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Times creation="2026-08-07T09:14:21.9000000+00:00" queuing="2026-08-07T09:14:22.0000000+00:00" start="2026-08-07T09:14:22.0310000+00:00" finish="2026-08-07T09:14:29.4810000+00:00"/>
<TestSettings name="default" id="2e5d8aa3-dfa8-ef34-ca51-31d20f9dad51">
<Deployment runDeploymentRoot="sample_ci-runner-04_2026-08-07_09_14_22"/>
</TestSettings>
<Results>
<UnitTestResult executionId="d713322b-122b-c960-02ee-6ccfb452f5b0" testId="1fa89cc4-b79d-7a36-2e83-c8c23b861c96" testName="cart.PricingTest.appliesUnitPrice" computerName="ci-runner-04" duration="00:00:00.6430000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="d713322b-122b-c960-02ee-6ccfb452f5b0"/>
<UnitTestResult executionId="4d463f0c-a422-78ec-683f-67a947b139ef" testId="88dc53d6-12c0-8d92-e7f8-908fe94979c9" testName="cart.PricingTest.appliesQuantityMultiplier" computerName="ci-runner-04" duration="00:00:00.6590000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="4d463f0c-a422-78ec-683f-67a947b139ef"/>
<UnitTestResult executionId="d837b72b-fb41-92c8-ab84-b6f0892cabff" testId="e0764819-3a61-41d1-e1aa-ac602e852aed" testName="cart.PricingTest.roundsHalfUpAtTwoDecimals" computerName="ci-runner-04" duration="00:00:01.0420000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="d837b72b-fb41-92c8-ab84-b6f0892cabff"/>
<UnitTestResult executionId="5b1f27c8-3bd3-cf28-a217-d0d7a30de23c" testId="bddf72a5-4b17-8830-14c8-b5a7825a3fe4" testName="cart.PricingTest.rejectsNegativeQuantity" computerName="ci-runner-04" duration="00:00:01.0480000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="5b1f27c8-3bd3-cf28-a217-d0d7a30de23c"/>
<UnitTestResult executionId="660b37ee-1144-3e11-69df-7fd362c3030d" testId="3136675d-5d3e-03db-b66e-dbf61b4edeaa" testName="cart.PricingTest.appliesTaxToSubtotal" computerName="ci-runner-04" duration="00:00:00.3520000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Failed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="660b37ee-1144-3e11-69df-7fd362c3030d">
<Output>
<ErrorInfo>
<Message>expected:<12.60> but was:<12.59></Message>
<StackTrace>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)
</StackTrace>
</ErrorInfo>
</Output>
</UnitTestResult>
<UnitTestResult executionId="cf85ebf2-fa27-7540-ca67-8d05955f59b6" testId="672e36c7-59c9-d7a2-83c9-3d7e97a72bfa" testName="cart.DiscountTest.appliesPercentageDiscount" computerName="ci-runner-04" duration="00:00:00.1470000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="cf85ebf2-fa27-7540-ca67-8d05955f59b6"/>
<UnitTestResult executionId="ae0e2929-3bb2-3cea-d82b-3c14dff548a8" testId="9d4aaccd-b869-7905-e4ba-c9360c5c143c" testName="cart.DiscountTest.stacksDiscountsInDeclaredOrder" computerName="ci-runner-04" duration="00:00:00.3270000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="ae0e2929-3bb2-3cea-d82b-3c14dff548a8"/>
<UnitTestResult executionId="7e1ce2b3-461a-043b-540f-8b5b648dcd1e" testId="208cdccf-918c-2d88-f53d-e11b328e61c9" testName="cart.DiscountTest.ignoresExpiredCoupon" computerName="ci-runner-04" duration="00:00:00.8930000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="7e1ce2b3-461a-043b-540f-8b5b648dcd1e"/>
<UnitTestResult executionId="601c1f39-5069-0868-d24a-9bf047cd9ac0" testId="fe6281a6-f2f7-7a6f-4d71-0b1a1568e1c6" testName="cart.DiscountTest.appliesLoyaltyTier" computerName="ci-runner-04" duration="00:00:00.7000000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="NotExecuted" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="601c1f39-5069-0868-d24a-9bf047cd9ac0">
<Output>
<ErrorInfo>
<Message>loyalty tiers are disabled in the CI profile</Message>
</ErrorInfo>
</Output>
</UnitTestResult>
<UnitTestResult executionId="630429ca-296c-97dc-0378-02d52b510795" testId="28cfa6cb-1c97-5cc9-de8a-196cac56da2a" testName="checkout.SessionTest.createsSessionForNewCart" computerName="ci-runner-04" duration="00:00:00.7830000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="630429ca-296c-97dc-0378-02d52b510795"/>
<UnitTestResult executionId="e8fc407d-b83e-c686-cca2-6ba02ac4f370" testId="2c7c5c40-67fc-f5f4-24a4-d34a595e30fd" testName="checkout.SessionTest.expiresSessionAfterTimeout" computerName="ci-runner-04" duration="00:00:00.6950000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Failed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="e8fc407d-b83e-c686-cca2-6ba02ac4f370">
<Output>
<ErrorInfo>
<Message>Connection refused: sessions.example.com:5432</Message>
<StackTrace>java.net.ConnectException: Connection refused: sessions.example.com:5432
at checkout.SessionStore.open(SessionStore.java:41)
at checkout.SessionTest.expiresSessionAfterTimeout(SessionTest.java:57)
</StackTrace>
</ErrorInfo>
</Output>
</UnitTestResult>
<UnitTestResult executionId="cd20d439-d85a-47e9-b76d-ecc4bf829794" testId="25bc8354-a5ea-da3e-8257-17ba71d7f07e" testName="checkout.SessionTest.restoresCartOnResume" computerName="ci-runner-04" duration="00:00:00.1610000" startTime="2026-08-07T09:14:22.0310000+00:00" endTime="2026-08-07T09:14:23.0310000+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="cd20d439-d85a-47e9-b76d-ecc4bf829794"/>
</Results>
<TestDefinitions>
<UnitTest name="appliesUnitPrice" storage="checkout.tests.dll" id="1fa89cc4-b79d-7a36-2e83-c8c23b861c96">
<Execution id="d713322b-122b-c960-02ee-6ccfb452f5b0"/>
<TestMethod codeBase="/builds/novus/checkout.tests.dll" adapterTypeName="executor://mstestadapter/v2" className="cart.PricingTest" name="appliesUnitPrice"/>Specifications
- Seed
- 61200
- Encoding
- UTF-8
- Line Endings
- LF
- Format
- Visual Studio TRX
- Tests
- 12
- Passed
- 9
- Failed
- 2
- Not Executed
- 1
- Has Test Definitions
- true
- Has Test Entries
- true
- Guids Are Deterministic
- true
- Namespace
- http://microsoft.com/schemas/VisualStudio/TeamTest/2010
Testing contract
Expected to pass- Scenario
- Join TRX results to their test definitions to recover class names.
- Expected result
- Each UnitTestResult's testId matches exactly one UnitTest definition, and the ResultSummary counters agree with the 12 result elements.
What is a .trx file?
TRX is the XML test-result format produced by the Visual Studio test platform and `dotnet test`. A TestRun element carries run metadata, a Times element with creation, queuing, start, and finish timestamps, a TestDefinitions section describing each test method, and UnitTestResult entries recording outcome, duration, output, and any error message and stack trace. A ResultSummary element aggregates the counts.
How to use this file
Use an example .trx file to test .NET CI reporters and TRX-to-JUnit converters, checking that outcomes map correctly, that the summary counts agree with the individual results, and that error output and stack traces are preserved.
How to use this file for testing
“MSTest — TRX Result File” 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.
Related files
- xmlTestNG — testng-results.xmlTestNG's own result document, with suite/test/class/test-method nesting, signature attributes and full stack traces in CDATA. TestNG has no error status, so the errored case is reported as FAIL and the header attributes read failed=2. Reports the same canonical run as the JUnit dialect files: 12 tests, 9 passed, 1 assertion failure, 1 error and 1 skip.

- xmlxUnit.net — v2 Assembly ResultsThe 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.

- 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.

- xmlFlaky Run — Network Dependency, Build #303 (passing)Build #303 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.