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.
- Host: GitHub
- URL: https://github.com/hamedfathi/trxfileparser
- Owner: HamedFathi
- License: mit
- Created: 2019-04-04T19:22:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T07:16:37.000Z (over 1 year ago)
- Last Synced: 2025-02-01T14:51:12.469Z (over 1 year ago)
- Topics: csharp, dotnet, nunit, test, testing, trx, trx-parser, xunit
- Language: C#
- Homepage:
- Size: 47.9 KB
- Stars: 7
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

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/)
[](https://opensource.org/licenses/MIT)


```
Install-Package TrxFileParser
dotnet add package TrxFileParser
```