Skip to content

Fix disposal issue: ensure TestContext OnDispose events are triggered after test completion #1086

Fix disposal issue: ensure TestContext OnDispose events are triggered after test completion

Fix disposal issue: ensure TestContext OnDispose events are triggered after test completion #1086

Triggered via issue August 16, 2025 11:01
Status Success
Total duration 2m 6s
Artifacts

claude.yml

on: issue_comment
Fit to window
Zoom out
Zoom in

Annotations

1 error and 1 warning
claude
SingleTestExecutor.cs(336,22): error CS1061: 'AsyncEvent<TestContext>' does not contain a definition for 'OrderBy' and no accessible extension method 'OrderBy' accepting a first argument of type 'AsyncEvent<TestContext>' could be found (are you missing a using directive or an assembly reference?)\n```\n\nThe issue is on line 336 where `OrderBy` is being called on an `AsyncEvent<TestContext>` type, but the LINQ extension method isn't available. Let me examine the current file...\n\n---\n\n[View job run](https://github.com/thomhurst/TUnit/actions/runs/17007653660)"
claude
/home/runner/work/TUnit/TUnit/TUnit.Core.SourceGenerator/CodeGenerators/Helpers/TupleArgumentHelper.cs(72,37): warning CS8600: Converting null literal or possible null value to non-nullable type. [/home/runner/work/TUnit/TUnit/TUnit.Core.SourceGenerator.Roslyn47/TUnit.Core.SourceGenerator.Roslyn47.csproj::TargetFramework=netstandard2.0]\n2025-08-16T10:06:57.2126318Z TUnit.Core.SourceGenerator.Roslyn47 -> /home/runner/work/TUnit/TUnit/TUnit.Core.SourceGenerator.Roslyn47/bin/Release/netstandard2.0/TUnit.Core.SourceGenerator.dll\n2025-08-16T10:06:57.3746389Z ##[error]/home/runner/work/TUnit/TUnit/TUnit.Engine/Services/SingleTestExecutor.cs(336,22): error CS1061: 'AsyncEvent<TestContext>' does not contain a definition for 'OrderBy' and no accessible extension method 'OrderBy' accepting a first argument of type 'AsyncEvent<TestContext>' could be found (are you missing a using directive or an assembly reference?) [/home/runner/work/TUnit/TUnit/TUnit.Engine/TUnit.Engine.csproj::TargetFramework=net8.0]\n2025-08-16T10:06:57.4921244Z TestProject -> /home/runner/work/TUnit/TUnit/TUnit.Templates/content/TUnit/bin/Release/net8.0/TestProject.dll\n2025-08-16T10:06:57.6854295Z TUnit.Assertions.Analyzers.CodeFixers -> /home/runner/work/TUnit/TUnit/TUnit.Assertions.Analyzers.CodeFixers/bin/Release/netstandard2.0/TUnit.Assertions.Analyzers.CodeFixers.dll\n2025-08-16T10:06:59.3735620Z ##[warning]/home/runner/work/TUnit/TUnit/TUnit.Analyzers/MultipleConstructorsAnalyzer.cs(13,15): warning RS2008: Enable analyzer release tracking for the analyzer project containing rule 'TUnit0052' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md) [/home/runner/work/TUnit/TUnit/TUnit.Analyzers.Roslyn47/TUnit.Analyzers.Roslyn47.csproj::TargetFramework=netstandard2.0]\n2025-08-16T10:06:59.4483506Z TUnit.Analyzers.Roslyn47 -> /home/runner/work/TUnit/TUnit/TUnit.Analyzers.Roslyn47/bin/Release/netstandard2.0/TUnit.Analyzers.dll\n2025-08-16T10:07:00.2869311Z ##[error]/home/runner/work/TUnit/TUnit/TUnit.Engine/Services/SingleTestExecutor.cs(336,22): error CS1061: 'AsyncEvent<TestContext>' does not contain a definition for 'OrderBy' and no accessible extension method 'OrderBy' accepting a first argument of type 'AsyncEvent<TestContext>' could be found (are you missing a using directive or an assembly reference?) [/home/runner/work/TUnit/TUnit/TUnit.Engine/TUnit.Engine.csproj::TargetFramework=netstandard2.0]\n2025-08-16T10:07:02.2624014Z WebApp -> /home/runner/work/TUnit/TUnit/TUnit.Templates/content/TUnit.AspNet/WebApp/bin/Release/net9.0/WebApp.dll\n2025-08-16T10:07:03.9323253Z TestProject -> /home/runner/work/TUnit/TUnit/TUnit.Templates/content/TUnit.AspNet/TestProject/bin/Release/net9.0/TestProject.dll\n2025-08-16T10:07:04.1796419Z Removing SourceGeneratedViewer directory...\n2025-08-16T10:07:04.1803746Z /home/runner/work/TUnit/TUnit/TUnit.Assertions.Analyzers.CodeFixers.Tests/TUnit.Assertions.Analyzers.CodeFixers.Tests.csproj : warning NU1504: Duplicate 'PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageReference' items are: Microsoft.Testing.Platform.MSBuild , Microsoft.Testing.Platform.MSBuild . [TargetFramework=net472]\n2025-08-16T10:07:04.3859716Z Removing SourceGeneratedViewer directory...\n--\n2025-08-16T10:07:11.0184047Z TestProject -> /home/runner/work/TUnit/TUnit/TUnit.Templates/content/TUnit.VB/bin/Release/net8.0/TestProject.dll\n2025-08-16T10:07:11.0802837Z /home/runner/work/TUnit/TUnit/TUnit.Templates/content/TUnit.AspNet.FSharp/TestProject/TestProject.fsproj : warning NU1504: Duplicate 'PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageReference' items are: TUnit.Assertions.FSharp *, TUnit.Assertions.FSharp 0.56.5.\n2025-08-16T10:07:11.7067649Z ##[error]/home/runner/work/TUnit/TUnit/TUnit.Engine/Services/SingleTestExecutor.cs(336,22): error CS1061: 'AsyncEve