Samhammer.net9.TrxToHtml 1.0.10

dotnet tool install --global Samhammer.net9.TrxToHtml --version 1.0.10
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Samhammer.net9.TrxToHtml --version 1.0.10
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Samhammer.net9.TrxToHtml&version=1.0.10
                    
nuke :add-package Samhammer.net9.TrxToHtml --version 1.0.10
                    

TrxToHtml

A tool to convert .trx test results files into clean HTML reports.

Note: This project is a fork of SamhammerAG/TrxToHtml, updated for .NET 9 compatibility.

Version 1.0.10 Update

Changes

  • Configure Scriban with unlimited loop iterations by setting TemplateContext.LoopLimit = 0 to support large TRX files (>1000 results). See related discussion in Scriban issue #550.
  • Make totals aggregation in the template null-safe to handle missing ResultSummary/Counters.

Bug Fixes

  • Fixed "Exceeding number of iteration limit 1000 for loop statement" when processing big result sets like smoke-tests.trx.

Version 1.0.9 Update

Changes

  • Upgraded to .NET 9.0 to ensure compatibility with GitHub Actions runners
  • Updated NuGet packages to their latest versions:
    • Scriban 6.2.1
    • CommandLineParser 2.9.1
    • Microsoft.Extensions.FileProviders.Embedded 9.0.4

Bug Fixes

  • Resolved template parsing issues introduced by the newer Scriban version

Note

The core functionality remains unchanged.
This update focuses on framework and package upgrades to maintain compatibility with the latest .NET version and GitHub Actions runners.

Installation

dotnet tool install -g Samhammer.net9.TrxToHtml

Usage

trx-to-html-net9 [options]

Options

  • -s, --searchPattern — Search pattern to scan for .trx files (default: "*.trx")
  • -n, --outputFileName — Name of the output HTML file (default: "TestResults.html")
  • -o, --outputDirectory — Target directory for the output HTML file (default: ".")
  • -w, --workingDirectory — Directory to recursively scan for .trx files (default: ".")
  • -t, --templateFile — Path to a custom template file used for generating the HTML
  • -a, --all — Process all matching .trx files; if omitted, only the latest .trx file per folder is processed

License

MIT

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.10 263 9/9/2025
1.0.8 372 4/27/2025
1.0.7 140 4/25/2025
1.0.6 146 4/25/2025
1.0.5 138 4/25/2025
1.0.4 145 4/25/2025
1.0.3 148 4/25/2025
1.0.2 142 4/25/2025
1.0.1 201 4/25/2025