What problem does it solve?
Investigating NuGet restore bugs reported in NuGet/Home requires manually translating issue reports into reproducible test cases, which is slow and error-prone without deep knowledge of the NuGet.Client test infrastructure.
Core Features & Use Cases
- Issue Analysis: Extracts repro-relevant data from GitHub issues including error codes, package graphs, project configuration, and expected versus actual behavior.
- Test Authoring: Generates C# tests in the NuGet.Client repo using SimpleTestPathContext, SimpleTestPackageContext, and RestoreCommand, with guidance on choosing between in-process functional tests and dotnet CLI integration tests.
- Bug-First Assertions: Structures tests to first assert the buggy behavior to prove reproduction, then assert the correct behavior expected after the fix.
- Use Case: Given an issue reporting NU1102 instead of NU1004 when lock file pruning data changes, produce a two-phase locked-mode restore test that reproduces the wrong error code and documents the correct one.
Quick Start
Analyze NuGet/Home issue 14727 and write a C# test in NuGet.Commands.FuncTest that reproduces the reported restore failure.