From f5cecb21c64d36fdcd8bc5d514f9affb694600cf Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Sun, 11 Jul 2021 14:46:41 -0700 Subject: [PATCH] Use dotnet test for test discovery --- eng/helix/content/RunTests/TestRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/helix/content/RunTests/TestRunner.cs b/eng/helix/content/RunTests/TestRunner.cs index 1b8ff472932c..083fc46d8dca 100644 --- a/eng/helix/content/RunTests/TestRunner.cs +++ b/eng/helix/content/RunTests/TestRunner.cs @@ -188,7 +188,7 @@ public async Task CheckTestDiscoveryAsync() { // Run test discovery so we know if there are tests to run var discoveryResult = await ProcessUtil.RunAsync($"{Options.DotnetRoot}/dotnet", - $"vstest {Options.Target} -lt", + $"test {Options.Target} --list-tests", environmentVariables: EnvironmentVariables, cancellationToken: new CancellationTokenSource(TimeSpan.FromMinutes(2)).Token);