Sparkdo.Testing
2.0.0-preview.2
This is a prerelease version of Sparkdo.Testing.
dotnet add package Sparkdo.Testing --version 2.0.0-preview.2
NuGet\Install-Package Sparkdo.Testing -Version 2.0.0-preview.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="Sparkdo.Testing" Version="2.0.0-preview.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.Testing" Version="2.0.0-preview.2" />
<PackageReference Include="Sparkdo.Testing" />
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 Sparkdo.Testing --version 2.0.0-preview.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sparkdo.Testing, 2.0.0-preview.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.
#:package Sparkdo.Testing@2.0.0-preview.2
#: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=Sparkdo.Testing&version=2.0.0-preview.2&prerelease
#tool nuget:?package=Sparkdo.Testing&version=2.0.0-preview.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sparkdo.Testing
职责
Sparkdo.Testing 提供 Manifest Runtime 的轻量测试入口,用于调用真实 generated provider/Hosting 路径并读取 publish 目录中的 blueprint artifact。
不负责
本包不提供 fragment、BlueprintDocument 或 runtime action plan 的注入 API,不运行 Compiler/Build,也不解释 publish JSON schema。
关键入口
SparkdoManifestRuntimeHarness.Run(...):接收IBlueprintProvider,映射SparkdoManifestRuntimeHarnessOptions到SparkdoHostOptions,调用SparkdoHost.Materialize(...),返回 application id、hash 和 trace 摘要。SparkdoPublishArtifactReader.Read(...):读取<publishDirectory>/sparkdo/runtime-blueprint.v1.json,返回路径与原始 UTF-8 JSON。
依赖与集成
项目文件 只直接引用 Sparkdo.Hosting。测试应让目标项目经过真实 Sparkdo.Compiler 和 Sparkdo.Build 链路,再把生成的 IBlueprintProvider 或 publish 目录交给本包。
验证
dotnet test src/polaris/test/Sparkdo.Testing.Tests/Sparkdo.Testing.Tests.csproj
| Product | Versions 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.
-
net10.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.8)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.FileProviders.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Sparkdo.Hosting (>= 2.0.0-preview.2)
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 |
|---|---|---|
| 2.0.0-preview.2 | 70 | 7/20/2026 |
| 2.0.0-preview.1 | 64 | 7/18/2026 |