From 74a2cc4fdafa9e83046d603f7c52a70ef7a5cd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Wed, 19 Feb 2025 09:43:31 +0100 Subject: [PATCH] deps: update Microsoft.Testing.Platform (#205) * Bump MTP + Expecto * Bump to 1.6.1 * Simplify code --- Directory.Packages.props | 4 ++-- src/YoloDev.Expecto.TestSdk/adapter.fs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 8cb91cb..0a882e3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,8 +3,8 @@ - - + + diff --git a/src/YoloDev.Expecto.TestSdk/adapter.fs b/src/YoloDev.Expecto.TestSdk/adapter.fs index 83c6ae9..1596080 100644 --- a/src/YoloDev.Expecto.TestSdk/adapter.fs +++ b/src/YoloDev.Expecto.TestSdk/adapter.fs @@ -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