Using the same nunit console for local and appveyor and everyone...

This commit is contained in:
Andreia Gaita 2017-10-27 23:04:59 +02:00
Родитель 96377ce0d3
Коммит ee7e6ef16c
3 изменённых файлов: 12 добавлений и 10 удалений

Двоичные данные
lib/NUnit.Extension.AppVeyor.NUnit3ResultWriter.0.1.0.nupkg Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -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" />