Intropy.Testing.EndToEnd 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Intropy.Testing.EndToEnd --version 0.1.0
                    
NuGet\Install-Package Intropy.Testing.EndToEnd -Version 0.1.0
                    
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="Intropy.Testing.EndToEnd" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Intropy.Testing.EndToEnd" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Intropy.Testing.EndToEnd" />
                    
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 Intropy.Testing.EndToEnd --version 0.1.0
                    
#r "nuget: Intropy.Testing.EndToEnd, 0.1.0"
                    
#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 Intropy.Testing.EndToEnd@0.1.0
                    
#: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=Intropy.Testing.EndToEnd&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Intropy.Testing.EndToEnd&version=0.1.0
                    
Install as a Cake Tool

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 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
0.2.0 0 12/3/2026
0.1.0 102 11/11/2026