-
Notifications
You must be signed in to change notification settings - Fork 130
/
ExecutingTestsOnWindowsAzure2.ps1
32 lines (22 loc) · 2.07 KB
/
ExecutingTestsOnWindowsAzure2.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
echo '********************************************Executing tests********************************************'
echo '********************************************net8.0 tests********************************************'
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.Features\bin\Release\net8.0" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$($env:CHROMEWEBDRIVER)" -logValues -json
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.Xunit\bin\Release\net8.0" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$($env:CHROMEWEBDRIVER)" -logValues -json
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.MsTest\bin\Release\net8.0" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$($env:CHROMEWEBDRIVER)" -logValues -json
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.UnitTests\bin\Release\net8.0" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$($env:CHROMEWEBDRIVER)" -logValues -json
dotnet vstest .\Ocaramba.Tests.Features\bin\Release\net8.0\Ocaramba.Tests.Features.dll `
.\Ocaramba.Tests.Xunit\bin\Release\net8.0\Ocaramba.Tests.Xunit.dll `
.\Ocaramba.Tests.MsTest\bin\Release\net8.0\Ocaramba.Tests.MsTest.dll `
.\Ocaramba.UnitTests\bin\Release\net8.0\Ocaramba.UnitTests.dll `
/TestCaseFilter:"(TestCategory!=TakingScreehShots)" /Parallel `
--logger:"trx;LogFileName=Ocaramba.Tests.netcoreapp.xml"
echo '********************************************EdgeChrominum tests********************************************'
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.NUnit\bin\Release\net8.0" "appsettings.json" "appSettings" "browser|PathToEdgeChromiumDriverDirectory" "EdgeChromium|$($env:EDGEWEBDRIVER)" -logValues -json
dotnet vstest .\Ocaramba.Tests.NUnit\bin\Release\net8.0\Ocaramba.Tests.NUnit.dll `
/TestCaseFilter:"(TestCategory=Grid)" /Parallel `
--logger:"trx;LogFileName=Ocaramba.Tests.EdgeChrominum.xml"
if($lastexitcode -ne 0)
{
echo 'lastexitcode' $lastexitcode
}
exit 0