ClUnit 1.0.0
Versions prior to 1.2.0 are very buggy and generally do not work unless under specific circumstances.
See the version list below for details.
dotnet add package ClUnit --version 1.0.0
NuGet\Install-Package ClUnit -Version 1.0.0
<PackageReference Include="ClUnit" Version="1.0.0" />
paket add ClUnit --version 1.0.0
#r "nuget: ClUnit, 1.0.0"
// Install ClUnit as a Cake Addin #addin nuget:?package=ClUnit&version=1.0.0 // Install ClUnit as a Cake Tool #tool nuget:?package=ClUnit&version=1.0.0
ClUnit
ClUnit is a unit testing framework for command line interfaces (CLIs) written in C#. With ClUnit, you can easily create and run unit tests for your CLIs, ensuring that they are reliable and perform as expected.
Features
- Easy to use, intuitive syntax for defining and running tests.
- Support for asserting the expected output and return code of your CLI.
- Cross-platform compatibility (Windows, macOS, and Linux).
Getting Started
Like other testing frameworks, ClUnit uses attributed methods for tests;
namespace ClExample;
public class MyTestClass
{
[CliTest]
public void Test()
{
CommandLine.AssertSuccess("git init");
}
}
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ClUnit:
Package | Downloads |
---|---|
ClUnit.Runner
Console application for executing ClUnit tests. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release... has some nice assertions.