Linkoid.SmiteUnit 0.3.0-alpha

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

// Install Linkoid.SmiteUnit as a Cake Tool
#tool nuget:?package=Linkoid.SmiteUnit&version=0.3.0-alpha&prerelease                

SmiteUnit

Subprocess Method Invocation Test Library

What is SmiteUnit?

SmiteUnit is a testing library for use in environments where a traditional unit testing framework cannot be used.

Common examples of using SmiteUnit include:

  • Testing a plugin for an application
  • Testing a mod for a video game
  • Running automated integration tests

SmiteUnit works by running a test in a sub process and capturing its input and output. Somewhere in this process there is a hook that checks for a specific test that the parent process is attempting to invoke. At the injection point if a valid test is found, the test is executed and the result is reported back to the parent process. What sets this library apart from other testing frameworks is the test writer has complete control over where the injection point is. This means that if the only way your code can possibly execute properly is as an injected dependency inside of another application that perhaps doesn't even have a proper debug mode, you will still be able to run these tests in an automated fashion.

Smite Lib is also designed to function well with other testing frameworks and it is even possible to run SmiteUnit inside of unit test Written in a different framework. This would even be the ideal use case in situations where specific input and output of the application needs to be tested for instantce standard input and standard output.

Key Design Requirements

  • SmiteUnit should be usable in any program where the SmiteUnit assembly can be loaded and executed.
  • The program in which the test is executed must be viewed as a black box.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Linkoid.SmiteUnit:

Package Downloads
Linkoid.Stardew.ValleyUnit

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.2-alpha.0 60 9/19/2024
0.3.1-alpha.2 67 8/25/2024
0.3.1-alpha.1 77 8/21/2024
0.3.1-alpha.0 64 8/20/2024
0.3.0-alpha 64 8/9/2024