Skip to content

Commit ebbad47

Browse files
committed
Downgrade to nunit2
1 parent 6ce9b53 commit ebbad47

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ environment:
1010
PYTHONUNBUFFERED: True
1111
PYTHONWARNINGS: 'ignore:::wheel.pep425tags:'
1212
PYTHONPATH: C:\testdir
13+
NUNIT: nunit-console
1314
CONDA_BLD: C:\conda
1415
CONDA_BLD_VERSION: 3.5
1516

@@ -34,6 +35,7 @@ init:
3435
- set CONDA_BLD_ARCH=%PLATFORM:x=%
3536
- set PYTHON=C:\PYTHON%PYTHON_VERSION:.=%
3637
- if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32)
38+
- if %PLATFORM%==x86 (set NUNIT=%NUNIT%-x86)
3739
- if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
3840

3941
# Prepend newly installed Python to the PATH of this build

ci/appveyor_run_tests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Executable paths for OpenCover
44
# Note if OpenCover fails, it won't affect the exit codes.
55
$OPENCOVER = Resolve-Path .\packages\OpenCover.*\tools\OpenCover.Console.exe
6-
$NUNIT = Resolve-Path .\packages\NUnit.ConsoleRunner*\tools\nunit3-console.exe
6+
$NUNIT = Resolve-Path .\packages\NUnit.Runners*\tools\"$env:NUNIT".exe
77
$PY = Get-Command python
88

99
# Can't use ".\build\*\Python.EmbeddingTest.dll". Missing framework files.
@@ -19,11 +19,11 @@ if ($PYTHON_STATUS -ne 0) {
1919
}
2020

2121
# Run Embedded tests with C# coverage
22-
# .$OPENCOVER -register:user -searchdirs:"$RUNTIME_DIR" -output:cs.coverage -target:"$NUNIT" -targetargs:"$CS_TESTS" -returntargetcode
23-
# $NUNIT_STATUS = $LastExitCode
24-
# if ($NUNIT_STATUS -ne 0) {
25-
# Write-Host "Embedded tests failed" -ForegroundColor "Red"
26-
# }
22+
.$OPENCOVER -register:user -searchdirs:"$RUNTIME_DIR" -output:cs.coverage -target:"$NUNIT" -targetargs:"$CS_TESTS" -returntargetcode
23+
$NUNIT_STATUS = $LastExitCode
24+
if ($NUNIT_STATUS -ne 0) {
25+
Write-Host "Embedded tests failed" -ForegroundColor "Red"
26+
}
2727

2828
# Embedded tests failing due to open issues, pass/fail only on Python exit code
2929
# if ($PYTHON_STATUS -ne 0 -or $NUNIT_STATUS -ne 0) {

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,8 @@
150150
<ErrorReport>prompt</ErrorReport>
151151
</PropertyGroup>
152152
<ItemGroup>
153-
<Reference Include="nunit.framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
154-
<HintPath>..\..\packages\NUnit.3.5.0\lib\net40\nunit.framework.dll</HintPath>
155-
<Private>True</Private>
153+
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
154+
<HintPath>..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
156155
</Reference>
157156
<Reference Include="System" />
158157
<Reference Include="System.Core">

src/embed_tests/packages.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="NUnit" version="3.5.0" targetFramework="net40" />
4-
<package id="NUnit.ConsoleRunner" version="3.5.0" targetFramework="net40" />
3+
<package id="NUnit" version="2.6.4" targetFramework="net40" />
4+
<package id="NUnit.Runners" version="2.6.4" targetFramework="net40" />
55
</packages>

0 commit comments

Comments
 (0)