microsoft/vstest/trx-analysis
Claude Code and agent skill by microsoft/vstest
- vendor
Checking that the SKILL.md file is still in the repository.
Parse and analyze Visual Studio TRX test result files. Use when asked about slow tests, test durations, test frequency, flaky tests, failure analysis, or test execution patterns from TRX files.
Install
npx vskill@latest install microsoft/vstest/trx-analysisSKILL.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 withtestName,duration(HH:mm:ss.fffffff),outcome(Passed/Failed/NotExecuted)TestRun.TestDefinitions.UnitTest— test metadata including class and method infoTestRun.ResultSummary— aggregate pass/fail/skip counts
Loading a TRX File
Common Queries
Top N slowest tests
Slowest test from each distinct class (top N)
Most-executed tests (parameterization frequency)
Extract the base method name before parameterization and count runs:
Failed tests
Summary statistics
Cross-File Duplicate Analysis
Compare two TRX files to find tests that appear in both and ran (were not skipped) in both. Useful for identifying redundant CI work across different configurations (e.g., net10.0 x64 vs net48 x86).
Load and find duplicates that ran in both files
Separate non-parametrized vs parametrized duplicates
Parametrized tests contain ( in their name (e.g., RunAllTests (Row: 0, Runner = net10.0, ...)). The base method name is everything before the first (.
Non-parametrized duplicates ordered by duration
Parametrized duplicates squashed by base method
Tests with (Row: ...) or other parameterization are instances of the same test. Squash them into one row per base method, showing variant count, max single-instance duration, and total duration across all instances in both files.
Tips
- Parameterized tests appear as separate
UnitTestResultentries. Use regex'^(\S+?)[\s(]'to extract the base method name. - Sort by TotalSec (runs × avg duration) to find tests that consume the most CI time overall, even if each individual run is fast.
- When comparing files, filter out
NotExecutedtests — many parameterized tests are skipped in one configuration but not the other, so raw name overlap overstates true duplication. - TRX files from CI are typically found in
TestResults/or as pipeline artifacts.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 1 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/trx-analysis/SKILL.md
Popularity
- Repository stars
- 966
- Repository forks
- 358
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/vstest/trx-analysis)