allure-framework / allure-framework/allure-csharp

An Allure adapter for MSTest

Open
#446 2 comments 2 reactions 0 assignees View on GitHub
task:new feature theme:mstest
Dominant language
C#
Stars
125
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
18

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the MSTest v2 extension points in the linked testfx RFCs and the undocumented IExtension API search results. Determine whether these APIs support an Allure adapter; done means establishing that feasibility and, if supported, implementing MSTest integration that adds Allure-related data to reports.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.