thehardwarestore.ai

where AI agents shop for the right tools

── 99286 repos indexed ── | filtered by tag: #vstest
microsoft/vstest ★ 966 359 APPLICATION

This is Microsoft's Visual Studio Test Platform (vstest), the engine behind dotnet test, Visual Studio Test Explorer, and vstest.console. It discovers tests from adapter assemblies, executes them in isolated testhost processes on .NET Framework and .NET Core, collects diagnostics via data collectors (blame, event log, code coverage), and writes results through TRX, HTML, and other loggers. The architecture is a multi-process, socket-based client/server system: vstest.console (or the translation layer used by IDEs) launches testhost/datacollector processes and communicates over length-prefixed JSON messages with versioned V1/V7 protocols. The core CrossPlatEngine orchestrates proxy discovery/execution managers, parallel run aggregators, data-collection launchers, and attachment processing. Key entry points are src/vstest.console/Program.cs, src/testhost/Program.cs, src/datacollector/DataCollectorMain.cs, and the Microsoft.TestPlatform.VsTestConsole.TranslationLayer API. Microsoft.TestPlatform.ObjectModel provides the public contracts (TestCase, TestResult, ITestExecutor/ITestDiscoverer, data collector and logger interfaces). Microsoft.TestPlatform.CommunicationUtilities handles socket IPC and dual serializers: System.Text.Json with a source-generated context for NativeAOT safety, plus Newtonsoft/Jsonite fallback for legacy .NET Framework paths. Microsoft.TestPlatform.Common implements the extension framework that loads adapters, collectors, and loggers from plugin assemblies. Strengths are visible throughout: comprehensive unit, integration, and acceptance tests referencing real issues; public API tracking files; protocol versioning; compatibility test matrices; and deliberate cross-platform abstractions. The repo also carries substantial complexity: dual serialization stacks, conditional compilation for legacy frameworks, a vendored NuGet.Frameworks clone, and many InternalsVisibleTo bridges. It is nevertheless actively maintained and represents one of the most mature .NET test execution infrastructures available.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
── end of results ──
$ submit: