Skip to content

HaxtonFale/TrxFileParser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

TestRun testRun = TrxFileParser.TrxConvert.Deserialize(trxFilePath);

Convert test result to Markdown

string markdown = testRun.ToMarkdown();

Open Source Love Nuget Nuget

Install-Package TrxFileParser

dotnet add package TrxFileParser

Icons made by Freepik from www.flaticon.com

About

A Trx file parser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%