Fix disposal issue: ensure TestContext OnDispose events are triggered after test completion #1057
Annotations
1 warning
claude
/Users/runner/work/TUnit/TUnit/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.cs(10,30): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/Users/runner/work/TUnit/TUnit/TUnit.Core.SourceGenerator.Tests/TUnit.Core.SourceGenerator.Tests.csproj::TargetFramework=net9.0]\n1209:2025-08-16T08:14:21.6807110Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.cs(10,30): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/Users/runner/work/TUnit/TUnit/TUnit.Core.SourceGenerator.Tests/TUnit.Core.SourceGenerator.Tests.csproj::TargetFramework=net8.0]\n1358:2025-08-16T08:14:49.0834810Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(14,25): warning CS0414: The field 'HookExceptionHandlingTests._afterAssemblyExecuted' is assigned but its value is never used [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net8.0]\n1439:2025-08-16T08:14:49.1115050Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(197,24): warning TUnit0042: Global hooks should not be mixed with test classes to avoid confusion. Place them in their own class. [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net8.0]\n1441:2025-08-16T08:14:49.1122330Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(52,24): warning TUnit0042: Global hooks should not be mixed with test classes to avoid confusion. Place them in their own class. [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net8.0]\n1442:2025-08-16T08:14:49.1124970Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(69,24): warning TUnit0042: Global hooks should not be mixed with test classes to avoid confusion. Place them in their own class. [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net8.0]\n1443:2025-08-16T08:14:49.1127680Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(106,24): warning TUnit0042: Global hooks should not be mixed with test classes to avoid confusion. Place them in their own class. [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net8.0]\n1598:2025-08-16T08:15:15.8689920Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(14,25): warning CS0414: The field 'HookExceptionHandlingTests._afterAssemblyExecuted' is assigned but its value is never used [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net9.0]\n1682:2025-08-16T08:15:15.9068620Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(197,24): warning TUnit0042: Global hooks should not be mixed with test classes to avoid confusion. Place them in their own class. [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net9.0]\n1683:2025-08-16T08:15:15.9071130Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(52,24): warning TUnit0042: Global hooks should not be mixed with test classes to avoid confusion. Place them in their own class. [/Users/runner/work/TUnit/TUnit/TUnit.TestProject/TUnit.TestProject.csproj::TargetFramework=net9.0]\n1684:2025-08-16T08:15:15.9073600Z ##[warning]/Users/runner/work/TUnit/TUnit/TUnit.TestProject/Bugs/_2804/HookExceptionHandlingTests.cs(69,24): warning TUnit0042: Global hooks should not be mixed with test classes
|