How rndsolutions/trx-merger works
Project type and purpose
• This is a .NET console (command-line) utility whose sole responsibility is to ingest multiple VSTest “.trx” XML test-result files, merge them into one combined “.trx” file, and optionally produce an HTML report. It is an open-source tool focused on test-report aggregation and rendering.
File structure
• Top‐level:
• TRX_Merger.sln / .csproj – the Visual Studio solution/project (console app).
• Program.cs – entry point, CLI argument parsing and orchestration.
• TestRunMerger.cs – core merging logic.
• Properties\AssemblyInfo.cs – metadata.
• packages.config – NuGet dependencies.
• Subdirectories:
• TrxModel – domain classes matching the TRX XML schema (e.g., TestRun, UnitTest, ErrorInfo).
• ReportModel – simplified report objects (TestRunReport, TestClassReport).
• ReportGenerator – takes ReportModel objects + HTML template → writes HTML.
• Utilities – helper/extension methods & XML (de)serialization utilities.
README for additional insights
• It describes CLI parameters (/trx, /output, /report, /r), usage examples, and indicates that a built-in HTML template is used for report generation.
Diagramming conventions
• Another for processing engines (Merger, Generator).
• A third for infrastructure (File I/O, Utilities).