Skip to content

v0.14.1

Choose a tag to compare

@github-actions github-actions released this 09 Nov 18:56
· 37 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.14.1
e34042f

[0.14.1] - 2026-11-09: tee, failure dump, and waits fixed at their edges

Patch release, no API change. The test-output tee keeps each record with its exception text and never writes into a test that ended while the record was being formatted; a dump armed or a tee built before TUnit starts the test no longer claims the lifetime attribute is missing; a failure dump ends with its summary; a wait whose token or timeout ends it returns the matching records the collector already holds.

Changed

  • TUnit.Assertions and TUnit.Core minimum versions raised from 1.80.0 to 1.81.10.
  • README: a record logged in a test class's DisposeAsync is not teed, since TUnit disposes the class after the test has ended (log in the test or an [After(Test)] hook); a retried test keeps one output across its attempts; a capture shared by tests that run at the same time puts each test's records in the others' dumps; the dump section describes how much of a test's output TUnit keeps.

Fixed

  • The built-in test-output tee (CreateTeed, CreateTeedDiscarding, AddTeedFakeLogging) wrote a record into a test that ended while the record was being formatted, and did not count it. A record that races the end of its test is now skipped and counted, never written into the ended test.
  • The built-in test-output tee wrote a record and its exception text as two writes, so a record logged on another thread at the same moment could land between them and the stack trace showed under the wrong record. Each record is now written together with its exception text.
  • DumpToTestOutputOnFailure() in a [Before(Class)] hook, a test class's constructor, or a fixture's initialization threw "needs the LogAssertionsTestLifetime attribute" in a project that applies it, because TUnit runs these before it starts the test. It now throws a message that says the call came before TUnit started the test. A tee built there no longer writes the "this test project does not apply the LogAssertionsTestLifetime attribute" note into the report.
  • DumpToTestOutputOnFailure(): TUnit keeps only the last ~786,000 characters of a test's output, so the report of a very large dump lost its heading. The dump now ends with a line that repeats the summary (End of dump: 3 of 120 records.), and every record is still written.
  • WillLog(...) failed when its timeout fired just after the matching record was captured, or when its token was already canceled while the matching records were there, with a contradictory message such as "the wait was canceled with 1 record(s) matched" under Once(). The records the collector holds when the wait ends now decide.
  • FakeLogCollector.WaitForLogAsync and WaitForLogsAsync threw OperationCanceledException when the token was canceled while the collector already held the matching records, and the message counted none. They now return those records, and the message of a canceled wait counts the records the collector holds and the matching ones among them. To decide, a canceled wait runs the filter again over the collector's records, so a filter may run more than once for the same record; the README and the ILogRecordFilter docs now say so (keep custom filters free of side effects).