Skip to content

Repository files navigation

search

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.

Create a Trx file

  • Command line
dotnet test -l:trx;LogFileName=C:\temp\TestOutput.xml
  • MSBuild
<PropertyGroup>
<VSTestLogger>trx</VSTestLogger>
<VSTestResultsDirectory>C:\temp</VSTestResultsDirectory>
</PropertyGroup>

Parsing a Trx file

TestRuntestRun=TrxFileParser.TrxConvert.Deserialize(trxFilePath);

Convert test result to Markdown

stringmarkdown=testRun.ToMarkdown();

Open Source LoveNugetNuget

Install-Package TrxFileParser
dotnet add package TrxFileParser

Icons made by Freepik from www.flaticon.com

About

A Trx file parser.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages