Skip to content

Commit

Permalink
deps: update Microsoft.Testing.Platform (#205)
Browse files Browse the repository at this point in the history
* Bump MTP + Expecto

* Bump to 1.6.1

* Simplify code
  • Loading branch information
Evangelink authored Feb 19, 2025
1 parent d3f2d1e commit 74a2cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PackageVersion Include="Expecto" Version="[10.2.1, 11.0)" />
<PackageVersion Include="FSharp.Core" Version="[7.0.200,)" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageVersion Include="Microsoft.Testing.Extensions.VSTestBridge" Version="1.5.3" />
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="1.5.3" />
<PackageVersion Include="Microsoft.Testing.Extensions.VSTestBridge" Version="1.6.1" />
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="1.6.1" />
<PackageVersion Include="Microsoft.TestPlatform.ObjectModel" Version="17.13.0" />
</ItemGroup>
</Project>
4 changes: 1 addition & 3 deletions src/YoloDev.Expecto.TestSdk/adapter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ type ExpectoTestFramework(extension, getTestAssemblies, serviceProvider, capabil
let runTests (request: VSTestRunTestExecutionRequest) (token: CancellationToken) =
let runner = vstestAdapter :> ITestExecutor
use _ = token.Register (fun _ -> runner.Cancel())
match request.VSTestFilter.TestCases |> Option.ofNullable with
| Some testCases -> runner.RunTests(testCases, request.RunContext, request.FrameworkHandle)
| None -> runner.RunTests(request.AssemblyPaths, request.RunContext, request.FrameworkHandle)
runner.RunTests(request.AssemblyPaths, request.RunContext, request.FrameworkHandle)
Task.CompletedTask

override _.SynchronizedDiscoverTestsAsync(request, _, _) = discoverTests request
Expand Down

0 comments on commit 74a2cc4

Please sign in to comment.