Skip to content

v7.0.0: Framework-neutral integration and Durable Functions preview - #110

Merged
chullybun merged 4 commits into
mainfrom
v7.0.0
Nov 15, 2026
Merged

chullybun merged 4 commits into
mainfrom
v7.0.0

Conversation

@chullybun

@chullybun chullybun commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Release scope

Prepare UnitTestEx 7.0.0 and UnitTestEx.Azure.Functions.Durable 7.0.0-preview. Version 6.2.0 was never published and will not be released; its unpublished changes are included in the v7 changelog and release scope.

The Durable Functions implementation from #109 is already merged into main and therefore is not duplicated in this PR's diff. It is part of the v7 release described here.

Framework-neutral testing

  • Core UnitTestEx infers xUnit v2/v3, NUnit v4/v5, and MSTest v3/v4 at runtime, replacing the separate UnitTestEx framework adapter packages. Custom frameworks integrate through TestFrameworkImplementor factories; missing or ambiguous detection has a diagnostic framework-neutral fallback.
  • Shared fixture APIs live in core, with configuration/disposal hooks and per-test framework/output context. Public tester factory and fixture entry points are at their project roots, with namespaces preserved.
  • Direct API, Generic, Functions, and Aspire testers accept per-test output and explicit implementor factories. Explicit factories take precedence and own their output routing.
  • Assertion, exception-constructor, and output bindings use cached delegates. Per-type caches use weak keys to avoid retaining otherwise collectible types.
  • Dedicated xUnit 3, NUnit 5, MSTest 4 and fallback checks cover the runtime integration, including CI verification of runner-captured output/log markers.

Durable Functions and other v7 release features

  • Optional Durable preview package: fluent in-memory SDK-host orchestration tests, typed root/child instances, activity mocks, invocation verification, managed diagnostics, replay and failure coverage, plus a separate method-level virtual-time context.
  • Real Functions integration uses Core Tools, the isolated worker, the Durable extension and Azurite. It covers activities, child workflows, DI/logging, failure recovery and buffered-event continuation.
  • The SDK host remains preview and uses wall-clock timers/retry delays. Method-level virtual time is not an engine; buffered-event preservation has the pinned host limitation documented in the support matrix. See Add preview Durable Functions testing and real-worker integration #109 for the original implementation and boundaries.
  • .NET 8/9/10/11 library/core targets, .NET 10/11 Aspire and Durable suites, Aspire forwarded-log fixes, dependency/security updates, and fixed .NET 10 integration infrastructure are captured together under v7.
  • README, package examples and Durable design/user documentation use v7 versions and the core framework-integration model; stale unpublished 6.2 references are removed.

Resolved issues

Consolidate runtime framework integration and fixtures into core, support newer framework majors, and align release documentation and Durable preview versioning with v7.0.0.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 14, 2026 20:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

CI restore can fail on unsupported targets, default publishing references deleted adapters, and unresolved framework-integration regressions affect output routing, fixture lifecycle, and assertions.

7 open issues
What changed in this PR

Prepares UnitTestEx 7.0.0 by moving test-framework integration into core and retiring separate adapter packages. The release also includes the Durable Functions preview already merged in #109; this diff updates its release documentation rather than reintroducing its implementation.

Changes:

  • Adds runtime framework detection, cached assertion/output bindings, and framework-neutral fixtures with lifecycle hooks.
  • Migrates existing suites and adds xUnit v3, NUnit 5, MSTest 4, fallback, and CI output-capture checks.
  • Updates shared versioning and documentation for v7 and the coordinated Durable preview.
File Description
UnitTestEx.sln Removes adapters and registers new verification projects.
tests/​UnitTestEx.Xunit3.Test/​UnitTestEx.Xunit3.Test.csproj Adds the xUnit v3 test project.
tests/​UnitTestEx.Xunit3.Test/​RuntimeFrameworkTests.cs Checks detection, selection, assertions, and output.
tests/​UnitTestEx.Xunit.Test/​WithFunctionTesterTest.cs Tests neutral fixture output and lifecycle hooks.
tests/​UnitTestEx.Xunit.Test/​UnitTestEx.Xunit.Test.csproj Removes the xUnit adapter reference.
tests/​UnitTestEx.Xunit.Test/​ServiceBusFunctionTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​ProductFunctionTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​ProductControllerTest.cs Updates fixture constructor arguments.
tests/​UnitTestEx.Xunit.Test/​PersonFunctionTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​PersonControllerTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​Other/​RequestStateDataTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​Other/​ObjectComparerTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​Other/​LoggerTest.cs Uses framework-neutral logger integration.
tests/​UnitTestEx.Xunit.Test/​Other/​GenericTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​Other/​CheckpointAndDelayTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​MockHttpClientTest.cs Imports core abstractions.
tests/​UnitTestEx.Xunit.Test/​HttpMockInterfaceTest.cs Imports core abstractions.
tests/​UnitTestEx.NUnit5.Test/​UnitTestEx.NUnit5.Test.csproj Adds the NUnit 5 test project.
tests/​UnitTestEx.NUnit5.Test/​RuntimeFrameworkTests.cs Checks native assertions, selection, and output.
tests/​UnitTestEx.NUnit.Test/​UnitTestEx.NUnit.Test.csproj Removes the NUnit adapter reference.
tests/​UnitTestEx.NUnit.Test/​ProductControllerTest.cs Uses neutral framework resolution during setup.
tests/​UnitTestEx.NUnit.Test/​Other/​WithGenericTesterTest.cs Adds configuration and disposal-hook coverage.
tests/​UnitTestEx.NUnit.Test/​Other/​LoggerTest.cs Uses framework-neutral logger integration.
tests/​UnitTestEx.MSTest4.Test/​UnitTestEx.MSTest4.Test.csproj Adds the MSTest 4 test project.
tests/​UnitTestEx.MSTest4.Test/​RuntimeFrameworkTests.cs Checks native assertions, selection, and output.
tests/​UnitTestEx.MSTest.Test/​UnitTestEx.MSTest.Test.csproj Removes the MSTest adapter reference.
tests/​UnitTestEx.MSTest.Test/​Other/​LoggerTest.cs Uses framework-neutral logger integration.
tests/​UnitTestEx.FrameworkFallback.Test/​UnitTestEx.FrameworkFallback.Test.csproj Adds a framework-free verification executable.
tests/​UnitTestEx.FrameworkFallback.Test/​Program.cs Checks fallback diagnostics and invalid selection.
tests/​UnitTestEx.DurableFunction.HostProbe/​UnitTestEx.DurableFunction.HostProbe.csproj Removes the NUnit adapter reference.
tests/​UnitTestEx.Azure.Functions.Durable.Test/​UnitTestEx.Azure.Functions.Durable.Test.csproj Removes the NUnit adapter reference.
tests/​UnitTestEx.Azure.Functions.Durable.Integration.Test/​UnitTestEx.Azure.Functions.Durable.Integration.Test.csproj Removes the NUnit adapter reference.
tests/​UnitTestEx.Aspire.Xunit.Test/​UnitTestEx.Aspire.Xunit.Test.csproj Removes the xUnit adapter reference.
tests/​UnitTestEx.Aspire.Xunit.Test/​AspireDisposalTest.cs Imports core abstractions.
tests/​UnitTestEx.Aspire.NUnit.Test/​UnitTestEx.Aspire.NUnit.Test.csproj Removes the NUnit adapter reference.
tests/​UnitTestEx.Aspire.MSTest.Test/​UnitTestEx.Aspire.MSTest.Test.csproj Removes the MSTest adapter reference.
src/​UnitTestEx/​WithGenericTester.cs Adds a neutral generic tester fixture base.
src/​UnitTestEx/​WithApiTester.cs Adds owned/shared API tester fixture support.
src/​UnitTestEx/​TestSetUp.cs Adds explicit framework selection.
src/​UnitTestEx/​GenericTester.cs Adds output and implementor factory overloads.
src/​UnitTestEx/​Generic/​GenericTesterT2.cs Accepts output and factories for typed testers.
src/​UnitTestEx/​Generic/​GenericTesterT.cs Accepts output and implementor factories.
src/​UnitTestEx/​AspNetCore/​ApiTesterT.cs Adds per-instance output support.
src/​UnitTestEx/​ApiTestFixture.cs Adds a neutral shared API fixture.
src/​UnitTestEx/​ApiTester.cs Adds an output-aware factory overload.
src/​UnitTestEx/​Abstractions/​UnitTestBase.cs Establishes per-test context and cleanup hooks.
src/​UnitTestEx/​Abstractions/​TestFrameworkImplementor.cs Adds ambient implementors and runtime resolution.
src/​UnitTestEx/​Abstractions/​TestFramework.cs Defines explicit framework choices.
src/​UnitTestEx/​Abstractions/​RuntimeTestFrameworkImplementor.cs Implements detection, assertions, output, and fallback.
src/​UnitTestEx/​Abstractions/​RuntimeFrameworkApiCache.cs Caches framework API bindings.
src/​UnitTestEx/​Abstractions/​LocalTestFrameworkImplementor.cs Routes shared fixtures through current context.
src/​UnitTestEx.Xunit/​WithApiTester.cs Removes the xUnit-specific fixture base.
src/​UnitTestEx.Xunit/​UnitTestEx.Xunit.csproj Removes the xUnit adapter project.
src/​UnitTestEx.Xunit/​UnitTestBase.cs Removes the xUnit-specific test base.
src/​UnitTestEx.Xunit/​Internal/​XunitTestImplementor.cs Removes the compiled xUnit adapter.
src/​UnitTestEx.Xunit/​Internal/​XunitLocalTestImplementor.cs Removes the xUnit-only context proxy.
src/​UnitTestEx.Xunit/​ApiTestFixture.cs Removes the xUnit-specific shared fixture.
src/​UnitTestEx.NUnit/​WithGenericTester.cs Removes the NUnit-specific generic fixture.
src/​UnitTestEx.NUnit/​WithApiTester.cs Removes the NUnit-specific API fixture.
src/​UnitTestEx.NUnit/​UnitTestEx.NUnit.csproj Removes the NUnit adapter project.
src/​UnitTestEx.NUnit/​Internal/​OneOffTestSetUp.cs Removes automatic NUnit adapter registration.
src/​UnitTestEx.NUnit/​Internal/​NUnitTestImplementor.cs Removes the compiled NUnit adapter.
src/​UnitTestEx.MSTest/​WithGenericTester.cs Removes the MSTest-specific generic fixture.
src/​UnitTestEx.MSTest/​WithApiTester.cs Removes the MSTest-specific API fixture.
src/​UnitTestEx.MSTest/​UnitTestEx.MSTest.csproj Removes the MSTest adapter project.
src/​UnitTestEx.MSTest/​Internal/​OneOffTestSetUp.cs Removes automatic MSTest adapter registration.
src/​UnitTestEx.MSTest/​Internal/​MSTestImplementor.cs Removes the compiled MSTest adapter.
src/​UnitTestEx.Azure.Functions/​WithFunctionTester.cs Adopts neutral context and lifecycle hooks.
src/​UnitTestEx.Azure.Functions/​FunctionTester.cs Accepts per-test output in factory calls.
src/​UnitTestEx.Azure.Functions/​Azure/​Functions/​FunctionTesterT.cs Forwards output to framework resolution.
src/​UnitTestEx.Aspire/​AspireTester.cs Adds an output-aware factory overload.
src/​UnitTestEx.Aspire/​Aspire/​AspireTesterT.cs Adds per-instance output support.
README.md Presents v7 packages and core framework integration.
docs/​test-setup-and-extensibility.md Documents detection, factories, and lifecycle hooks.
docs/​migration-v6.md Clarifies that .NET 11 support starts in v7.
docs/​generic-testing.md Documents output overloads and neutral fixtures.
docs/​azure-functions.md Updates output, fixture, and framework guidance.
docs/​azure-durable-functions.md Updates preview versions and package guidance.
docs/​azure-durable-functions-design.md Aligns coordinated version examples with v7.
docs/​aspire.md Documents per-test output handling.
docs/​api-testing.md Documents output sinks and factory ownership.
Common.targets Sets the shared version to 7.0.0.
CHANGELOG.md Consolidates unpublished changes into the v7 release.
.github/​workflows/​ci.yml Adds framework smoke and output-capture checks.

Review effort: Balanced

Comment thread .github/workflows/ci.yml Resolved
Comment thread src/UnitTestEx/ApiTestFixture.cs Resolved
Comment thread src/UnitTestEx/WithGenericTester.cs Resolved
@chullybun
chullybun merged commit 5885af1 into main Nov 15, 2026
14 of 15 checks passed
@chullybun
chullybun deleted the v7.0.0 branch November 15, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants