Linkoid.SmiteLib
0.3.0-alpha
dotnet add package Linkoid.SmiteLib --version 0.3.0-alpha
NuGet\Install-Package Linkoid.SmiteLib -Version 0.3.0-alpha
<PackageReference Include="Linkoid.SmiteLib" Version="0.3.0-alpha" />
paket add Linkoid.SmiteLib --version 0.3.0-alpha
#r "nuget: Linkoid.SmiteLib, 0.3.0-alpha"
// Install Linkoid.SmiteLib as a Cake Addin #addin nuget:?package=Linkoid.SmiteLib&version=0.3.0-alpha&prerelease // Install Linkoid.SmiteLib as a Cake Tool #tool nuget:?package=Linkoid.SmiteLib&version=0.3.0-alpha&prerelease
SmiteLib
Subprocess Method Invocation Test Library
What is SmiteLib?
SmiteLib is a testing library for use in environments where a traditional unit testing framework cannot be used.
Common examples of using SmiteLib include:
- Testing a plugin for an application
- Testing a mod for a video game
- Running automated integration tests
SmiteLib 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 smitelib 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
- SmiteLib should be usable in any program where the SmiteLib assembly can be loaded and executed.
- The program in which the test is executed must be viewed as a black box.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Linkoid.SmiteLib.Framework (>= 0.3.0-alpha)
- Linkoid.SmiteLib.VisualStudio.TestAdapter (>= 0.3.0-alpha)
-
.NETStandard 2.1
- Linkoid.SmiteLib.Framework (>= 0.3.0-alpha)
- Linkoid.SmiteLib.VisualStudio.TestAdapter (>= 0.3.0-alpha)
-
net6.0
- Linkoid.SmiteLib.Framework (>= 0.3.0-alpha)
- Linkoid.SmiteLib.VisualStudio.TestAdapter (>= 0.3.0-alpha)
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-alpha | 95 | 8/8/2024 | |
0.2.1-alpha | 70 | 8/6/2024 | |
0.2.0-alpha | 49 | 8/4/2024 | |
0.1.1-alpha | 66 | 8/1/2024 | |
0.1.0-alpha | 51 | 7/31/2024 |