https://github.com/devlooped/dotnet-trx
Pretty-print test results from trx files
https://github.com/devlooped/dotnet-trx
Last synced: about 1 year ago
JSON representation
Pretty-print test results from trx files
- Host: GitHub
- URL: https://github.com/devlooped/dotnet-trx
- Owner: devlooped
- License: mit
- Created: 2024-07-02T02:47:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-29T00:13:29.000Z (about 1 year ago)
- Last Synced: 2025-04-05T23:43:57.070Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 528 KB
- Stars: 51
- Watchers: 0
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.txt
Awesome Lists containing this project
README
 dotnet-trx
============
[](https://www.nuget.org/packages/dotnet-trx)
[](https://www.nuget.org/packages/dotnet-trx)
[](https://github.com//devlooped/dotnet-trx/blob/main/license.txt)
[](https://github.com/devlooped/dotnet-trx/actions)
Pretty-print test results in TRX format.

Typical usage: `dotnet test --logger trx; trx` (optionally with `--output`).
It automatically integrates with GitHub Actions by appending a pull request comment with the results too.
Set up workflow with:
```yml
- name: 🧪 show
continue-on-error: true
if: always()
run:
dotnet tool update -g dotnet-trx
trx --output
```
And view results in an automatic pull request comment like:

> NOTE: this behavior is triggered by the presence of the `GITHUB_REF_NAME` and `CI` environment variables.
```shell
USAGE:
trx [OPTIONS]
OPTIONS:
DEFAULT
-h, --help Prints help information
-v, --version Prints version information
-p, --path Optional base directory for *.trx files
discovery. Defaults to current directory
-o, --output Include test output
-r, --recursive True Recursively search for *.trx files
--skipped True Include skipped tests
--no-exit-code Do not return a -1 exit code on test
failures
--gh-comment True Report as GitHub PR comment
--gh-summary True Report as GitHub step summary
```
Install:
```shell
dotnet tool install -g dotnet-trx
```
Update:
```shell
dotnet tool update -g dotnet-trx
```
# Sponsors
[](https://github.com/clarius)
[](https://github.com/KirillOsenkov)
[](https://github.com/MFB-Technologies-Inc)
[](https://github.com/decriptor)
[](https://github.com/torutek-gh)
[](https://github.com/drivenet)
[](https://github.com/AshleyMedway)
[](https://github.com/Keflon)
[](https://github.com/tbolon)
[](https://github.com/kfrancis)
[](https://github.com/twenzel)
[](https://github.com/Giorgi)
[](https://github.com/unoplatform)
[](https://github.com/dansiegel)
[](https://github.com/rbnswartz)
[](https://github.com/jfoshee)
[](https://github.com/Mrxx99)
[](https://github.com/eajhnsn1)
[](https://github.com/IxTechnologies)
[](https://github.com/davidjenni)
[](https://github.com/Jonathan-Hickey)
[](https://github.com/okyrylchuk)
[](https://github.com/akunzai)
[](https://github.com/jakobt)
[](https://github.com/seanalexander)
[](https://github.com/tinohager)
[](https://github.com/ploeh)
[](https://github.com/KenBonny)
[](https://github.com/SimonCropp)
[](https://github.com/agileworks-eu)
[](https://github.com/sorahex)
[](https://github.com/arsdragonfly)
[](https://github.com/vezel-dev)
[](https://github.com/ChilliCream)
[](https://github.com/4OTC)
[](https://github.com/sponsors/devlooped)
Â
[Learn more about GitHub Sponsors](https://github.com/sponsors)