From e5e04ff2605fcd4779b4ea4b3e457c58a2dbc929 Mon Sep 17 00:00:00 2001 From: Ian Johnson Date: Sat, 5 Sep 2026 10:37:18 -0400 Subject: [PATCH] Cut 1.3.1: the container's lifetime under xUnit Version and changelog for #56. A patch: no public API changes shape, the xUnit test case gains an interface it already satisfied in spirit. Co-Authored-By: Claude Fable 5.1 --- CHANGELOG.md | 11 +++++++++++ Directory.Build.props | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff6bd9b..a5ef7a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.1] - 2026-09-05 + +### Fixed + +- Under xUnit, a test's container is disposed when its case has run. `ModuleTestCase` handed + the provider to the case's `DisposalTracker`, and xUnit disposes a test case only once every + case in the assembly has run, so every container a run built stayed alive, with every + singleton in it, until the run ended. The case now executes itself and disposes what it built + in a `finally` once its run returns; NUnit's `ModuleTestCommand` has always done this in its + own `finally`. Per case, which for every test but a data-driven one is per test. + ## [1.3.0] - 2026-09-01 ### Added diff --git a/Directory.Build.props b/Directory.Build.props index 7ae4f5a..d1318ac 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ local and CI builds fall back to the values below. --> - 1.3.0 + 1.3.1 1.0.0.0 - 1.3.0.0 + 1.3.1.0