Releases: JohnVerheij/TracingAssertions.TUnit
Releases · JohnVerheij/TracingAssertions.TUnit
Release list
v0.2.0
[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 exampleServerfor an inbound request span),IsRoot()(no parent),HasEvent(name), andHasExceptionEvent()(the OpenTelemetry"exception"event). The event assertions list the span's event names on failure. - Capture assertions:
Assert.That(capture).HasNoSpan(operationName)(the inverse ofHasSpan, for asserting an operation was never traced) andHasSpanCount(int). SpanCapture.ForSource(name, ActivitySamplingResult)andForSources(ActivitySamplingResult, params string[])capture under a chosen sampling result. The existing parameterless forms still forceAllDataAndRecorded. A lower result (for examplePropagationData) lets a test exercise code that branches onActivity.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
PackageValidationBaselineVersionfrom0.1.0to0.1.2on both packages so ApiCompat strict-mode validates0.2.0against the most recently published baseline.
v0.1.2
[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 onlyHasOperationNameand 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..Becauseis 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.mdsection 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
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
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
- @renovate[bot] made their first contribution in #3
- @JohnVerheij made their first contribution in #2
Full Changelog: v0.0.1...v0.1.0