Intropy.Testing.EndToEnd
0.1.0
dotnet add package Intropy.Testing.EndToEnd --version 0.1.0
NuGet\Install-Package Intropy.Testing.EndToEnd -Version 0.1.0
<PackageReference Include="Intropy.Testing.EndToEnd" Version="0.1.0" />
<PackageVersion Include="Intropy.Testing.EndToEnd" Version="0.1.0" />
<PackageReference Include="Intropy.Testing.EndToEnd" />
paket add Intropy.Testing.EndToEnd --version 0.1.0
#r "nuget: Intropy.Testing.EndToEnd, 0.1.0"
#:package Intropy.Testing.EndToEnd@0.1.0
#addin nuget:?package=Intropy.Testing.EndToEnd&version=0.1.0
#tool nuget:?package=Intropy.Testing.EndToEnd&version=0.1.0
Intropy.Testing.EndToEnd
Helpers for end-to-end tests on the local Intropy environment, intropy-dev-env: a k3d cluster with Dapr, fixture servers (SFTP, a WireMock HTTP stub, S3, RabbitMQ, Postgres, the Service Bus emulator), the Intropy platform services and a driver — a Dapr sidecar that tests use to act as a component.
Your tests run on the host against components you have deployed on the rig. They drive the flow through the driver and check what reached the systems at the edges.
using Intropy.Contracts.BusinessIncidentService;
using Intropy.Testing.EndToEnd;
public class OrderFlowTests
{
[EndToEndFact] // skipped when the rig is not running
public async Task FailedOrder_IsReportedToTheErp()
{
using var driver = new Driver();
using var wireMock = new WireMock();
var orderId = Guid.NewGuid().ToString();
// Act as a component: raise a business incident through the rig's driver.
await driver.BusinessIncidents.Trigger(new Uri("urn:example:order-loader"), orderId, orderId,
new BusinessIncidentData { Description = $"Order {orderId} failed" }, batchId: null);
// Check what reached the external system the WireMock fixture stands in for.
var calls = await wireMock.WaitForRequests(
r => r.Url.AbsolutePath == "/erp/incidents" && r.Body.Contains(orderId), 1, "the ERP call");
Assert.Equal("POST", calls[0].Method);
}
}
| Type | What it does |
|---|---|
IntropyRig |
The rig's host addresses (INTROPY_RIG_DRIVER_URL, INTROPY_RIG_WIREMOCK_URL override them) and platform app-ids. |
EndToEndFactAttribute |
An xUnit fact that is skipped, with the reason, when the rig is not reachable. |
Driver |
A DaprClient on the rig driver, and the business incident service client through it. |
WireMock |
Stubs (Stub, RemoveStub) and the request journal (Requests, WaitForRequests). |
Eventually |
Polls until a condition holds, with a timeout that names what was waited for. |
The rig is shared by every test that runs against it: match requests on something unique to your test, not on "the latest request".
Requires xUnit 2.x.
| 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. |
-
net10.0
- Dapr.Client (>= 1.18.10)
- Intropy.BusinessIncidentService.Client (>= 1.4.0)
- Intropy.Contracts (>= 0.1.0)
- xunit.extensibility.core (>= 2.9.3)
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.1.0 | 102 | 11/11/2026 |