ClUnit 1.0.2

Additional Details

Versions prior to 1.2.0 are very buggy and generally do not work unless under specific circumstances.

There is a newer version of this package available.
See the version list below for details.
dotnet add package ClUnit --version 1.0.2
NuGet\Install-Package ClUnit -Version 1.0.2
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="ClUnit" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClUnit --version 1.0.2
#r "nuget: ClUnit, 1.0.2"
#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.
// Install ClUnit as a Cake Addin
#addin nuget:?package=ClUnit&version=1.0.2

// Install ClUnit as a Cake Tool
#tool nuget:?package=ClUnit&version=1.0.2

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");
    }
}
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net6.0

    • 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.

Version Downloads Last updated
1.2.0 296 12/13/2022
1.1.1 300 12/13/2022
1.1.0 333 12/12/2022
1.0.3 394 12/11/2022
1.0.2 339 12/11/2022
1.0.1 458 12/11/2022
1.0.0 305 12/11/2022

Fix2