From 6fbd2de127bf8dbbf678e8d5f383627cdb395809 Mon Sep 17 00:00:00 2001 From: seraphima Date: Tue, 30 Jan 2024 12:31:31 +0100 Subject: [PATCH] search vstest.console --- .pipelines/ci/templates/run-ui-tests-ci.yml | 2 +- .pipelines/scripts/runUiTests.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pipelines/ci/templates/run-ui-tests-ci.yml b/.pipelines/ci/templates/run-ui-tests-ci.yml index 08691a9fae..485a137c00 100644 --- a/.pipelines/ci/templates/run-ui-tests-ci.yml +++ b/.pipelines/ci/templates/run-ui-tests-ci.yml @@ -43,7 +43,7 @@ jobs: filePath: $(build.sourcesdirectory)\.pipelines\scripts\runUiTests.ps1 arguments: >- -SearchFolder '$(Build.ArtifactStagingDirectory)\x64\**\UITests-FancyZonesEditor.dll' - -VsConsolePath 'D:\a\_work\_temp\VsTest' + -VsConsolePath 'D:\a\_work\_temp\VsTest\**' -MatchPattern '**\UITests-*.dll' -LogPath '$(Build.ArtifactStagingDirectory)\Logs' -ResultPath "$(Build.ArtifactStagingDirectory)\TestResults" diff --git a/.pipelines/scripts/runUiTests.ps1 b/.pipelines/scripts/runUiTests.ps1 index ed9c8f80da..7e5ae7f926 100644 --- a/.pipelines/scripts/runUiTests.ps1 +++ b/.pipelines/scripts/runUiTests.ps1 @@ -14,5 +14,5 @@ Param( Write-Output "Starting UI tests" -$Cmd = "$VsConsolePath\vstest.console.exe $SearchFolder /ResultsDirectory:$ResultPath" -Invoke-Expression -Command $Cmd \ No newline at end of file +$Command = "$VsConsolePath\vstest.console.exe $SearchFolder /ResultsDirectory:$ResultPath" +Invoke-Expression $Command \ No newline at end of file