Important
Introducing HamedStack! For all my latest libraries, visit: Explore HamedStack. Replacements and updates are available at the link. Thank you for your support! The new version of this library is accessible via HamedStack.VSTest
A Trx
file is nothing but a Visual Studio unit test result file extension. This file is in XML format. TrxFileParser
helps you to parse it.
- Command line
dotnet test -l:trx;LogFileName=C:\temp\TestOutput.xml
- MSBuild
<PropertyGroup>
<VSTestLogger>trx</VSTestLogger>
<VSTestResultsDirectory>C:\temp</VSTestResultsDirectory>
</PropertyGroup>
TestRun testRun = TrxFileParser.TrxConvert.Deserialize(trxFilePath);
string markdown = testRun.ToMarkdown();
Install-Package TrxFileParser
dotnet add package TrxFileParser
Icons made by Freepik from www.flaticon.com