allure-framework/allure-csharp

An Allure adapter for MSTest

delatrie opened this issue · 0 comments

Motivation

MSTest is among the three most popular unit test frameworks for C#. It's comparable to NUnit and xUnit.net by download counts (daily average for the last 6 weeks):

  • MSTest: 150k
  • NUnit: 210k
  • xUnit.net: 343k

While .trx files generated with dotnet test --logger trx are natively supported by both Allure Report and Allure TestOps, a dedicated adapter is missing making it impossible to add Allure-related data to the report.

Other information

Previously we were unable to implement such an adapter due to the lack of an extension API in MSTest. Now, in MSTest v2 there are some extension points that we can utilize. They're documented here: https://github.com/microsoft/testfx/tree/main/docs/RFCs. There is also an undocumented extension API that's worth taking a look at: https://github.com/search?q=repo%3Amicrosoft%2Ftestfx+IExtension&type=code&p=1

We should check these APIs on whether they allow us to implement an adapter and then proceed with the issue.