forked from Accenture/Ocaramba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExecutingTestsOnLinux.ps1
34 lines (19 loc) · 1.83 KB
/
ExecutingTestsOnLinux.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
33
34
echo '********************************************Executing tests********************************************'
echo '********************************************NUnit tests********************************************'
dotnet test --configuration Debug --no-build --no-restore Ocaramba.Tests.Angular -maxCpuCount --test-adapter-path:. --logger:Appveyor
dotnet test --configuration Debug --filter TestCategory!=NotImplementedInCoreOrUploadDownload --no-build --no-restore Ocaramba.Tests.NUnit -maxCpuCount --test-adapter-path:. --logger:Appveyor
dotnet test --configuration Debug --filter TestCategory!=NotImplementedInCoreOrUploadDownload --no-build --no-restore Ocaramba.UnitTests -maxCpuCount --test-adapter-path:. --logger:Appveyor
echo '********************************************XUnit tests********************************************'
dotnet test --configuration Debug --no-build --no-restore Ocaramba.Tests.Xunit -maxCpuCount --test-adapter-path:. --logger:Appveyor
echo '********************************************Specflow tests********************************************'
#dotnet test --configuration Debug --filter TestCategory!=NotImplementedInCoreOrUploadDownload --no-build --no-restore Ocaramba.Tests.Features -maxCpuCount --test-adapter-path:. --logger:Appveyor
echo '********************************************MsTest tests********************************************'
dotnet test --configuration Debug --no-build --no-restore Ocaramba.Tests.MsTest -maxCpuCount --test-adapter-path:. --logger:Appveyor
if($lastexitcode -ne 0)
{
echo 'lastexitcode' $lastexitcode
}
7z a testresults_Ubuntu.zip ./Ocaramba.*/bin/Debug/**/TestOutput/*.png
7z a testresults_Ubuntu.zip ./Ocaramba.*/bin/Debug/**/TestOutput/*.html
7z a testresults_Ubuntu.zip ./Ocaramba.*/bin/Debug/**/*.log
appveyor PushArtifact testresults_Ubuntu.zip