Skip to content

chore: revert Tunit to v0.25.21#713

Merged
vbreuss merged 2 commits intomainfrom
chore/downgrade-tunit-0.25.21
Aug 11, 2025
Merged

chore: revert Tunit to v0.25.21#713
vbreuss merged 2 commits intomainfrom
chore/downgrade-tunit-0.25.21

Conversation

@vbreuss
Copy link
Copy Markdown
Member

@vbreuss vbreuss commented Aug 11, 2025

This PR reverts the TUnit testing framework from version 0.50.0 back to version 0.25.21, due to build errors in the newer version that affected the test suite or framework integration.

  • Downgrade TUnit core package from 0.50.0 to 0.25.21
  • Downgrade TUnit.Assertions package from 0.50.0 to 0.25.21

@vbreuss vbreuss self-assigned this Aug 11, 2025
Copilot AI review requested due to automatic review settings August 11, 2025 17:34
@vbreuss vbreuss added the dependencies Pull requests that update a dependency file label Aug 11, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reverts the TUnit testing framework from version 0.50.0 back to version 0.25.21, likely due to compatibility issues or breaking changes in the newer version that affected the test suite or framework integration.

  • Downgrade TUnit core package from 0.50.0 to 0.25.21
  • Downgrade TUnit.Assertions package from 0.50.0 to 0.25.21

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 11, 2025

Test Results

    14 files  +     5      14 suites  +5   3m 4s ⏱️ + 2m 2s
14 350 tests + 1 073  14 342 ✅ + 1 073   8 💤 ± 0  0 ❌ ±0 
39 756 runs  +25 605  39 736 ✅ +25 593  20 💤 +12  0 ❌ ±0 

Results for commit f01b2c8. ± Comparison against base commit c5f6791.

This pull request removes 524 and adds 1597 tests. Note that renamed tests count towards both.
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message31b9768a-2594-4e6a-afe6-fa37ce9748d1")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "messagef34e2a59-3c39-467e-80f8-1dc5b347e1ce")
aweXpect.Core.Tests.Core.Exceptions.SkipExceptionTests ‑ Message_ShouldBeSet(message: "message14664607-a2b8-4058-bd0e-06cf06da920c")
aweXpect.Core.Tests.Core.Exceptions.SkipExceptionTests ‑ Message_ShouldBeSet(message: "message349f147d-35cd-4bf2-b537-1326fafdf903")
aweXpect.Core.Tests.Equivalency.EquivalencyOptionsExtensionsTests ‑ Generic_For_IgnoringMember_ShouldSetOptionForType(memberToIgnore: "memberToIgnore0f72cf63-c1a5-4210-8b77-2c539bed4629")
aweXpect.Core.Tests.Equivalency.EquivalencyOptionsExtensionsTests ‑ Generic_For_IgnoringMember_ShouldSetOptionForType(memberToIgnore: "memberToIgnore8f2254c9-8f85-48e9-aee0-c60691d05198")
aweXpect.Core.Tests.FailTests ‑ Test_ShouldThrowException(reason: "reason496a5ac6-b4b3-424f-b6b3-26be10da86e2")
aweXpect.Core.Tests.FailTests ‑ Test_ShouldThrowException(reason: "reason6ad04cca-e92d-4461-87cf-c61ddd75da21")
aweXpect.Core.Tests.FailTests ‑ Unless_ShouldThrowException(condition: False, reason: "reason05f09e69-7cbf-4209-9df2-868b5c425e4b")
aweXpect.Core.Tests.FailTests ‑ Unless_ShouldThrowException(condition: False, reason: "reason52f85280-227e-4645-baf7-12119d43ec7d")
…
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message599664b3-00e0-4a53-b61e-6c1470cdf495")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message5eddabfa-b346-41fb-9a50-d6af3fb34baa")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "messagece61232e-370b-4470-9dcf-e78a44b98464")
aweXpect.Core.Tests.Core.Exceptions.SkipExceptionTests ‑ Message_ShouldBeSet(message: "messagebdbec584-ae43-494e-ab42-c1cbac9280c3")
aweXpect.Core.Tests.Core.Exceptions.SkipExceptionTests ‑ Message_ShouldBeSet(message: "messagecc70dad5-be67-4944-8f90-965b8e9cfce9")
aweXpect.Core.Tests.Core.Exceptions.SkipExceptionTests ‑ Message_ShouldBeSet(message: "messagefa6bed60-a9f3-49da-90f3-dc7749ce0a68")
aweXpect.Core.Tests.Equivalency.EquivalencyOptionsExtensionsTests ‑ Generic_For_IgnoringMember_ShouldSetOptionForType(memberToIgnore: "memberToIgnore58d8f4d2-bbaa-466f-8f30-d65de90cb133")
aweXpect.Core.Tests.Equivalency.EquivalencyOptionsExtensionsTests ‑ Generic_For_IgnoringMember_ShouldSetOptionForType(memberToIgnore: "memberToIgnore942597d1-2eaa-4120-b7b4-6b63f327f3a2")
aweXpect.Core.Tests.Equivalency.EquivalencyOptionsExtensionsTests ‑ Generic_For_IgnoringMember_ShouldSetOptionForType(memberToIgnore: "memberToIgnoreaae619b6-0fec-4c0f-a85b-e249c0a83b37")
aweXpect.Core.Tests.FailTests ‑ Test_ShouldThrowException(reason: "reason34add25b-0230-4f1e-ad1e-9a3d20736634")
…

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 11, 2025

🚀 Benchmark Results

Details

BenchmarkDotNet v0.14.0, Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.413
[Host] : .NET 8.0.19 (8.0.1925.36514), X64 RyuJIT AVX2

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Method Mean Error StdDev Gen0 Gen1 Allocated
Bool_aweXpect 183.7 ns 0.62 ns 0.55 ns 0.0281 - 472 B
Bool_FluentAssertions 238.9 ns 0.95 ns 0.84 ns 0.0567 - 952 B
Bool_TUnit 871.3 ns 2.31 ns 2.16 ns 0.1431 - 2408 B
Equivalency_aweXpect 297,655.2 ns 659.40 ns 584.54 ns 16.6016 0.4883 284940 B
Equivalency_FluentAssertions 2,109,662.6 ns 5,728.84 ns 4,783.84 ns 273.4375 46.8750 4584416 B
Equivalency_TUnit 678,331.8 ns 1,119.53 ns 1,047.21 ns 51.7578 2.9297 880545 B
Int_GreaterThan_aweXpect 216.3 ns 0.48 ns 0.45 ns 0.0467 - 784 B
Int_GreaterThan_FluentAssertions 245.4 ns 0.93 ns 0.87 ns 0.0730 - 1224 B
Int_GreaterThan_TUnit 1,153.8 ns 1.88 ns 1.76 ns 0.1774 - 2984 B
ItemsCount_AtLeast_aweXpect 461.7 ns 1.28 ns 1.13 ns 0.0854 - 1432 B
ItemsCount_AtLeast_FluentAssertions 466.2 ns 0.56 ns 0.46 ns 0.1197 - 2008 B
ItemsCount_AtLeast_TUnit 14,819.2 ns 43.72 ns 40.90 ns 1.6327 - 27480 B
String_aweXpect 347.2 ns 2.33 ns 2.18 ns 0.0672 - 1128 B
String_FluentAssertions 468.2 ns 1.77 ns 1.47 ns 0.1292 - 2168 B
String_TUnit 1,173.2 ns 4.99 ns 4.67 ns 0.1831 - 3072 B
StringArray_aweXpect 1,369.6 ns 1.81 ns 1.60 ns 0.1640 - 2744 B
StringArray_FluentAssertions 1,289.9 ns 5.10 ns 4.77 ns 0.2480 - 4152 B
StringArray_TUnit 3,235.2 ns 6.15 ns 5.76 ns 0.3128 - 5296 B
StringArrayInAnyOrder_aweXpect 1,539.7 ns 1.17 ns 0.92 ns 0.1736 - 2920 B
StringArrayInAnyOrder_FluentAssertions 148,919.3 ns 410.26 ns 342.58 ns 3.4180 - 63787 B
StringArrayInAnyOrder_TUnit 3,882.0 ns 11.70 ns 10.37 ns 0.3815 - 6488 B

@sonarqubecloud
Copy link
Copy Markdown

@vbreuss vbreuss merged commit 13b8294 into main Aug 11, 2025
12 of 13 checks passed
@vbreuss vbreuss deleted the chore/downgrade-tunit-0.25.21 branch August 11, 2025 22:20
github-actions Bot added a commit that referenced this pull request Aug 11, 2025
github-actions Bot added a commit that referenced this pull request Aug 11, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This is addressed in release v2.21.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants