test-results-reporter / parser

Parse test results from JUnit, TestNG, xUnit and many more
https://www.testbeats.com
MIT License
12 stars 9 forks source link

Introduce MSTest Support #44

Closed bryanbcook closed 10 months ago

bryanbcook commented 10 months ago

This PR introduces basic support for MS Test TRX format:

<TestRun xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
  <Results>
    <UnitTestResult testId="..." duration="..." outcome="...">
      <Output>
        <ErrorInfo>
          <Message>...</Message>
          <StackTrace>...</StackTrace>
        </ErrorInfo>
       </Output>
    </UnitTestResult>
    <UnitTestResult .../>
  </Results>
  <TestDefinitions>
    <UnitTest name="..." id="...">
      <TestCategory>
        <TestCategoryItem TestCategory="..." />
      </TestCategory>
      <!-- Note Properties are supported by the Schema but are not emitted on all platforms -->
      <Properties>
        <Property>
          <Key>...</Key>
          <Value>...</Value>
        </Property>
      </Properties>
      <TestMethod className="..." name="..." />
    </UnitTest>
    <UnitTest .../>
  </TestDefinitions>
</TestRun>

Known issues:

Support for the elements listed above could be introduced if we had sample xml (trx) outputs.

czimbortibor commented 7 months ago

Any chance this gets published in a new release?

bryanbcook commented 7 months ago

Waiting on @ASaiAnudeep re #48

bryanbcook commented 6 months ago

@czimbortibor a new release was pushed earlier today.

czimbortibor commented 6 months ago

Awesome! Thank you very much for this great tool. Appreciated