In-memory multi-session testing toolkit for Repl applications.
License
—
Deps
1
Install Size
—
Vulns
✓ 0
Published
Mar 4, 2026
$ dotnet add package Repl.TestingRepl.Testing is an in-memory harness for multi-step and multi-session tests over a Repl command surface.
dotnet add package Repl.Testing
using Repl;
using Repl.Testing;
await using var host = ReplTestHost.Create(() =>
{
var app = ReplApp.Create().UseDefaultInteractive();
app.Map("hello", () => "world");
return app;
});
await using var session = await host.OpenSessionAsync();
var execution = await session.RunCommandAsync("hello --no-logo");