Skip to content

Releases: JohnVerheij/TracingAssertions.TUnit

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 14 Jun 14:56
v0.2.0
10ed831

[0.2.0] - 2026-06-14: kind, root, event, and count assertions; sampling control

Minor release. Adds span and capture assertions for ASP.NET Core span testing, plus a sampling-control capture overload. Purely additive.

Added

  • Span assertions: Assert.That(span).HasKind(ActivityKind) (for example Server for an inbound request span), IsRoot() (no parent), HasEvent(name), and HasExceptionEvent() (the OpenTelemetry "exception" event). The event assertions list the span's event names on failure.
  • Capture assertions: Assert.That(capture).HasNoSpan(operationName) (the inverse of HasSpan, for asserting an operation was never traced) and HasSpanCount(int).
  • SpanCapture.ForSource(name, ActivitySamplingResult) and ForSources(ActivitySamplingResult, params string[]) capture under a chosen sampling result. The existing parameterless forms still force AllDataAndRecorded. A lower result (for example PropagationData) lets a test exercise code that branches on Activity.IsAllDataRequested, with the documented caveat that an activity's effective sampling is the maximum across all active listeners, so this takes effect only when the capture is the sole listener.

Changed

  • Bumped PackageValidationBaselineVersion from 0.1.0 to 0.1.2 on both packages so ApiCompat strict-mode validates 0.2.0 against the most recently published baseline.

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 06 Jun 14:24
v0.1.2
91ae4a2

[0.1.2] - 2026-06-06: package description correction

Metadata-only release. No API or behavior change.

Fixed

  • Corrected the NuGet package <Description>. It described a foundation release carrying only HasOperationName and said the full fluent surface "lands in 0.1.0"; the package has shipped the complete surface (operation name, tag existence and value, status, parent/child, same-trace) since 0.1.0. The description now matches the README.

Added

  • README: a short example showing .Because(reason) chained on a span assertion, plus a test covering it. .Because is inherited from TUnit's base assertion type and has always worked on the generated span assertions; the note makes that explicit.

Changed

  • The release workflow now publishes the matching CHANGELOG.md section as the GitHub release body (body_path), so release notes carry the full hand-written detail instead of GitHub's auto-generated commit summary.

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 05 Jun 05:38
v0.1.1
2d6497a

What's Changed

  • docs: conventions + README refresh; release 0.1.1 by @JohnVerheij in #5

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 04 Jun 21:05
v0.1.0
6e41ff6

What's Changed

  • ci(github-actions): update github/codeql-action action to v4.36.2 by @renovate[bot] in #3
  • deps(nuget): update tunit to v1.49.0 by @renovate[bot] in #4
  • feat: span-query surface and the full assertion set (0.1.0) by @JohnVerheij in #2

New Contributors

Full Changelog: v0.0.1...v0.1.0

v0.0.1

Choose a tag to compare

@github-actions github-actions released this 04 Jun 20:15
v0.0.1
3cf252e