trx-analysis

Installation
SKILL.md

TRX Test Results Analysis

Parse .trx files (Visual Studio Test Results XML) to answer questions about test performance, frequency, failures, and patterns.

TRX File Format

TRX files use XML namespace http://microsoft.com/schemas/VisualStudio/TeamTest/2010. Key elements:

  • TestRun.Results.UnitTestResult — individual test executions with testName, duration (HH:mm:ss.fffffff), outcome (Passed/Failed/NotExecuted)
  • TestRun.TestDefinitions.UnitTest — test metadata including class and method info
  • TestRun.ResultSummary — aggregate pass/fail/skip counts

Loading a TRX File

[xml]$trx = Get-Content "path/to/file.trx"
$results = $trx.TestRun.Results.UnitTestResult
Installs
1
GitHub Stars
969
First Seen
8 days ago
trx-analysis — microsoft/vstest