зеркало из https://github.com/github/VisualStudio.git
Using the same nunit console for local and appveyor and everyone...
This commit is contained in:
Родитель
96377ce0d3
Коммит
ee7e6ef16c
Двоичный файл не отображается.
|
@ -31,17 +31,18 @@ $rootDirectory = Split-Path ($scriptsDirectory)
|
|||
|
||||
$dll = "$BasePathToProject\$Project\bin\$Configuration\$Project.dll"
|
||||
|
||||
if ($AppVeyor) {
|
||||
$consoleRunner = nunit3-console
|
||||
$args = $dll,"--where ""cat != Timings""","--result=myresults.xml;format=AppVeyor"
|
||||
& $consoleRunner ($args | %{ "`"$_`"" })
|
||||
if($LastExitCode -ne 0) {
|
||||
$host.SetShouldExit($LastExitCode)
|
||||
}
|
||||
} else {
|
||||
#$consoleRunner = nunit3-console
|
||||
#$args = $dll,"--where ""cat != Timings""","--result=myresults.xml;format=AppVeyor"
|
||||
#& $consoleRunner ($args | %{ "`"$_`"" })
|
||||
# else {
|
||||
$nunitDirectory = Join-Path $rootDirectory packages\NUnit.ConsoleRunner.3.7.0\tools
|
||||
$consoleRunner = Join-Path $nunitDirectory nunit3-console.exe
|
||||
|
||||
$xml = Join-Path $rootDirectory "nunit-$Project.xml"
|
||||
Run-Process -Fatal $TimeoutDuration $consoleRunner $dll,"--where ""cat != Timings""","--result=$xml"
|
||||
}
|
||||
Run-Process -Fatal $TimeoutDuration $consoleRunner $dll,"--where ""cat != Timings""","--result=$xml;format=AppVeyor"
|
||||
if ($AppVeyor) {
|
||||
if($LastExitCode -ne 0) {
|
||||
$host.SetShouldExit($LastExitCode)
|
||||
}
|
||||
}
|
||||
#}
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NUnit.Extension.AppVeyor.NUnit3ResultWriter" version="0.1" />
|
||||
<package id="NUnit" version="2.6.4" targetFramework="net452" />
|
||||
<package id="NUnit.Extension.NUnitV2Driver" version="3.7.0" targetFramework="net461" />
|
||||
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче