MacroDeck.Plugin.Testing 3.0.0-preview.10

This is a prerelease version of MacroDeck.Plugin.Testing.
dotnet add package MacroDeck.Plugin.Testing --version 3.0.0-preview.10
                    
NuGet\Install-Package MacroDeck.Plugin.Testing -Version 3.0.0-preview.10
                    
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="MacroDeck.Plugin.Testing" Version="3.0.0-preview.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MacroDeck.Plugin.Testing" Version="3.0.0-preview.10" />
                    
Directory.Packages.props
<PackageReference Include="MacroDeck.Plugin.Testing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MacroDeck.Plugin.Testing --version 3.0.0-preview.10
                    
#r "nuget: MacroDeck.Plugin.Testing, 3.0.0-preview.10"
                    
#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.
#:package MacroDeck.Plugin.Testing@3.0.0-preview.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MacroDeck.Plugin.Testing&version=3.0.0-preview.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MacroDeck.Plugin.Testing&version=3.0.0-preview.10&prerelease
                    
Install as a Cake Tool

MacroDeck.Plugin.Testing

Test host, fakes and assertions for a plugin built on MacroDeck.Plugin.Hosting - written against that package's public surface only, so it stays accurate across hosting refactors instead of drifting the way a hand-rolled double would.

What's here

  • MacroDeckTestHost - a real loopback host speaking the plugin protocol. Host a plugin in-process with HostAsync, or launch a real executable with LaunchAsync; either way you get a PluginSessionView to invoke capabilities on and assert against.
  • PluginTestHarness - drives a plugin's capability handlers directly, with no socket at all, for a fast unit test that does not need the wire.
  • MacroDeck.Plugin.Testing.Conformance - a framework-agnostic suite of protocol-level checks any plugin can be run against, from your own test project or from macrodeck-plugin test. See the conformance guide.
  • MacroDeck.Plugin.Testing.Fakes - in-memory stand-ins for the eight APIs IIntegrationContext exposes (variables, user variables, config and secrets, deck navigation, scripts, widgets, events, notifications) plus action interactions, so an integration can be exercised without a host on the other end of any of them.
  • ManualTimeProvider and Wait.UntilAsync - a clock you advance by hand and a polling helper that throws PluginTestTimeoutException instead of hanging.

Two authentication modes

PluginTestCredentials.Managed and PluginTestCredentials.SelfRegistering drive HostAsync through both registration modes a real plugin can run in, the same way MacroDeck:Plugin:* configuration and MACRO_DECK_PLUGIN_* environment variables do for a host-launched or self-registering plugin respectively - both paths derive their key names from PluginEnvironmentConfiguration.KeysByVariable rather than restating them.

What this package deliberately does not do

It has no dependency on host/src and never will - a plugin author testing against it gets exactly the fidelity a third party gets, nothing the real host does differently. It also references no test framework: Wait.UntilAsync throws rather than asserting, so it works the same under NUnit, xUnit or anything else.

Licensed under Apache-2.0.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.0.0-preview.10 150 9/4/2026
3.0.0-preview.8 63 9/1/2026
3.0.0-preview.7 69 8/28/2026
3.0.0-preview.6 78 8/24/2026
3.0.0-preview.5 68 8/22/2026
3.0.0-preview.4 73 8/20/2026
3.0.0-preview.3 81 8/14/2026
3.0.0-preview.2 68 8/14/2026
3.0.0-preview.1 71 8/13/2026
3.0.0-beta.11 104 9/17/2026
3.0.0-beta.7 61 9/16/2026
3.0.0-beta.6 41 9/15/2026
3.0.0-beta.5 61 9/14/2026
3.0.0-beta.4 100 9/11/2026
3.0.0-beta.3 58 9/9/2026
3.0.0-beta.2 64 9/6/2026
3.0.0-beta.1 74 9/6/2026