Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f4f509f

Browse files
author
Meaghan Lewis
authored
Merge branch 'master' into fixes/1303-wrap-clone-error
2 parents 36fff3e + ae29de7 commit f4f509f

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

scripts/Run-NUnit.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ $xml = Join-Path $rootDirectory "nunit-$Project.xml"
4040
exit -1
4141
}
4242

43-
Run-Process -Fatal $TimeoutDuration $consoleRunner $dll,"--where ""cat != Timings""","--result=$xml;format=AppVeyor"
43+
$args = @()
44+
if ($AppVeyor) {
45+
$args = $dll, "--where", "cat!=Timings", "--result=$xml;format=AppVeyor"
46+
} else {
47+
$args = $dll, "--where", "cat!=Timings", "--result=$xml"
48+
}
49+
50+
Run-Process -Fatal $TimeoutDuration $consoleRunner $args
4451
if (!$?) {
4552
Die 1 "$Project tests failed"
4653
}

scripts/test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if ($Trace) {
3030
Set-PSDebug -Trace 1
3131
}
3232

33-
$env:PATH = "$$PSScriptRoot;$env:PATH"
33+
$env:PATH = "$PSScriptRoot;$env:PATH"
3434

3535
$exitcode = 0
3636

test.cmd

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
@rem Tests currently only work on `Release` build.
2-
@if "%config%" == "" set config=Release
3-
4-
call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
5-
6-
msbuild GitHubVS.sln /p:Configuration=%Config%
7-
VSTest.Console.exe src\UnitTests\bin\%Config%\UnitTests.dll /TestAdapterPath:"."
8-
VSTest.Console.exe src\TrackingCollectionTests\bin\%Config%\TrackingCollectionTests.dll /TestAdapterPath:"."
1+
@if "%1" == "" echo Please specify Debug or Release && EXIT /B
2+
powershell -ExecutionPolicy Unrestricted scripts\test.ps1 -Config:%1

0 commit comments

Comments
 (0)