An open API service indexing awesome lists of open source software.

https://github.com/hamedfathi/trxfileparser

A Trx file parser.
https://github.com/hamedfathi/trxfileparser

csharp dotnet nunit test testing trx trx-parser xunit

Last synced: 8 months ago
JSON representation

A Trx file parser.

Awesome Lists containing this project

README

          

![search](https://user-images.githubusercontent.com/8418700/140909729-b376f550-469b-426d-8d7d-b78cfee45350.png)

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

```xml

trx
C:\temp

```

### Parsing a Trx file

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

### Convert test result to Markdown

```cs
string markdown = testRun.ToMarkdown();
```


### [Nuget](https://www.nuget.org/packages/TrxFileParser/)

[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://opensource.org/licenses/MIT)
![Nuget](https://img.shields.io/nuget/v/TrxFileParser)
![Nuget](https://img.shields.io/nuget/dt/TrxFileParser)

```
Install-Package TrxFileParser

dotnet add package TrxFileParser
```



Icons made by Freepik from www.flaticon.com