From 67f7d3b23afd1a9d6c52b7282b0f63a6c4d59182 Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Thu, 28 Nov 2024 11:27:04 +0100 Subject: [PATCH] Update ExecutingTestsOnDockerGithubActions.ps1 --- ExecutingTestsOnDockerGithubActions.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ExecutingTestsOnDockerGithubActions.ps1 b/ExecutingTestsOnDockerGithubActions.ps1 index bfd46ede..2047c92e 100644 --- a/ExecutingTestsOnDockerGithubActions.ps1 +++ b/ExecutingTestsOnDockerGithubActions.ps1 @@ -3,10 +3,9 @@ docker info docker ps -a docker exec ocaramba_selenium bash -c "ls ; sed -i '/Documentation/,+5 d' ./Ocaramba.sln ; dotnet build ./Ocaramba.sln" docker exec ocaramba_selenium bash -c 'pwsh ./scripts/set_AppConfig_for_tests.ps1 "./Ocaramba.Tests.NUnit/bin/Debug/net8.0" "appsettings.Linux.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|/usr/local/bin/" -logValues -json' -docker exec ocaramba_selenium bash -c 'dotnet vstest ./Ocaramba.Tests.NUnit/bin/Debug/net8.0/Ocaramba.Tests.NUnit.dll /TestCaseFilter:"(TestCategory!=NotImplementedInCoreOrUploadDownload)" /Parallel --logger:trx;LogFileName=Ocaramba.Tests.Docker.xml' -docker exec ocaramba_selenium bash -c "ls -R" -docker cp ocaramba_selenium:/TestResults/Ocaramba.Tests.Docker.xml . - +docker exec ocaramba_selenium bash -c 'dotnet vstest ./Ocaramba.Tests.NUnit/bin/Debug/net8.0/Ocaramba.Tests.NUnit.dll /TestCaseFilter:"(TestCategory!=NotImplementedInCoreOrUploadDownload)" /Parallel --logger:trx;LogFileName=Ocaramba.Tests.Docker.trx' +docker exec ocaramba_selenium bash -c "cp /Ocaramba/TestResults/*.trx /tmp/Ocaramba.Tests.Docker.trx" +docker cp ocaramba_selenium:/tmp/Ocaramba.Tests.Docker.trx . docker rm ocaramba_selenium --force if($lastexitcode -ne 0)