Runic.CommandLine.Testing
0.3.0-preview.1
This is a prerelease version of Runic.CommandLine.Testing.
dotnet add package Runic.CommandLine.Testing --version 0.3.0-preview.1
NuGet\Install-Package Runic.CommandLine.Testing -Version 0.3.0-preview.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Runic.CommandLine.Testing" Version="0.3.0-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Runic.CommandLine.Testing" Version="0.3.0-preview.1" />
<PackageReference Include="Runic.CommandLine.Testing" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Runic.CommandLine.Testing --version 0.3.0-preview.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Runic.CommandLine.Testing, 0.3.0-preview.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Runic.CommandLine.Testing@0.3.0-preview.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Runic.CommandLine.Testing&version=0.3.0-preview.1&prerelease
#tool nuget:?package=Runic.CommandLine.Testing&version=0.3.0-preview.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Runic.CommandLine.Testing
Use this package in tests for deterministic command invocation fixtures. It provides an in-memory console, a simple scope factory, parsed invocations, captured parse settings, an already-cancelled token, and JSON envelope parsing without reading or mutating process-global state.
Test the whole application
var tester = new CommandAppTester(console => new CommandApp(catalog)
{
Console = console,
ParseSettings = ParseSettings.Default,
HandleCancelKeyPress = false,
});
var result = await tester.RunAsync(["greet", "Ada", "--output=json"]);
using var frame = CommandTestEnvelope.Parse(result.StandardOutput);
For prompt tests, construct TestCommandConsole with explicit capability flags
and call QueueInput. Each tester run gets fresh output buffers.
| 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.
-
net10.0
- Runic.CommandLine (= 0.3.0-preview.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.0-preview.1 | 41 | 9/11/2026 |
| 0.2.0-preview.1 | 48 | 9/9/2026 |