testutil 1.3.1
dotnet tool install --global testutil --version 1.3.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local testutil --version 1.3.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=testutil&version=1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package testutil --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
testutil
Given a Roslyn PR number (or AzDo build ID),
finds the set of tests failing in CI for that PR/build,
and produces a .playlist file which can be used in Visual Studio to run just the failing tests.
Usage
dotnet tool install -g testutil # install the tool
dotnet tool update -g testutil # update the tool if already installed
testutil <Roslyn GitHub PR number or build ID> # generates a .playlist file
Related work
There's the great runfo tool
where you can do something similar via a command like
runfo.exe search-tests -b <number> --playlist tests.playlist.
However, the runfo tool requires authentication via PAT
(it has more functionality so it makes sense),
whereas testutil doesn't require any authentication,
so it's easier to use.
Release process
$version='<put-your-version-here>'
dotnet pack -p:PackageVersion=$version
dotnet nuget push src/TestUtil/bin/Release/testutil.$version.nupkg --source https://api.nuget.org/v3/index.json
git tag v$version && git push origin v$version
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.