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

Commit 21f82b4

Browse files
author
Meaghan Lewis
authored
Merge pull request #1425 from github/task/auto-detect-tests
Auto detect tests in Appveyor
2 parents b62034a + 12dc458 commit 21f82b4

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

appveyor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ install:
1919
nuget restore GitHubVS.sln
2020
build_script:
2121
- ps: scripts\build.ps1 -AppVeyor -BuildNumber:$env:APPVEYOR_BUILD_NUMBER
22-
test_script:
23-
- ps: scripts\test.ps1 -AppVeyor
22+
test:
23+
categories:
24+
except:
25+
- Timings
2426
on_success:
2527
- ps: |
2628
if ($full_build) {
-7.67 KB
Binary file not shown.

scripts/test.ps1

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ Param(
1818
$TimeoutDuration = 180
1919
,
2020
[switch]
21-
$AppVeyor = $false
22-
,
23-
[switch]
2421
$Trace = $false
2522

2623
)
@@ -35,30 +32,30 @@ $env:PATH = "$PSScriptRoot;$env:PATH"
3532
$exitcode = 0
3633

3734
Write-Output "Running Tracking Collection Tests..."
38-
Run-NUnit test TrackingCollectionTests $TimeoutDuration $config -AppVeyor:$AppVeyor
35+
Run-NUnit test TrackingCollectionTests $TimeoutDuration $config
3936
if (!$?) {
4037
$exitcode = 1
4138
}
4239

4340
Write-Output "Running GitHub.UI.UnitTests..."
44-
Run-NUnit test GitHub.UI.UnitTests $TimeoutDuration $config -AppVeyor:$AppVeyor
41+
Run-NUnit test GitHub.UI.UnitTests $TimeoutDuration $config
4542
if (!$?) {
4643
$exitcode = 2
4744
}
4845

4946
Write-Output "Running UnitTests..."
50-
Run-NUnit test UnitTests $TimeoutDuration $config -AppVeyor:$AppVeyor
47+
Run-NUnit test UnitTests $TimeoutDuration $config
5148
if (!$?) {
5249
$exitcode = 3
5350
}
5451

5552
Write-Output "Running GitHub.InlineReviews.UnitTests..."
56-
Run-NUnit test GitHub.InlineReviews.UnitTests $TimeoutDuration $config -AppVeyor:$AppVeyor
53+
Run-NUnit test GitHub.InlineReviews.UnitTests $TimeoutDuration $config
5754
if (!$?) {
5855
$exitcode = 4
5956
}
6057

61-
if ($exitcode -ne 0 -and $AppVeyor) {
58+
if ($exitcode -ne 0) {
6259
$host.SetShouldExit($exitcode)
6360
}
6461
exit $exitcode

test/GitHub.InlineReviews.UnitTests/packages.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<package id="Microsoft.Win32.Primitives" version="4.0.1" targetFramework="net461" />
1111
<package id="NSubstitute" version="2.0.3" targetFramework="net461" />
1212
<package id="NUnit" version="3.9.0" targetFramework="net461" />
13-
<package id="NUnit.Extension.AppVeyor.NUnit3ResultWriter" version="0.1" />
1413
<package id="NUnit.Extension.NUnitV2Driver" version="3.7.0" targetFramework="net461" />
1514
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />
1615
<package id="NUnit.Runners" version="2.6.4" targetFramework="net452" />

test/TrackingCollectionTests/packages.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="NUnit.Extension.AppVeyor.NUnit3ResultWriter" version="0.1" />
43
<package id="NUnit" version="2.6.4" targetFramework="net452" />
54
<package id="NUnit.Extension.NUnitV2Driver" version="3.7.0" targetFramework="net461" />
65
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />

test/UnitTests/packages.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<package id="Rothko" version="0.0.3-ghfvs" targetFramework="net461" />
2929
<package id="NUnit" version="3.9.0" targetFramework="net461" />
3030
<package id="NUnit.ConsoleRunner" version="3.7.0" targetFramework="net461" />
31-
<package id="NUnit.Extension.AppVeyor.NUnit3ResultWriter" version="0.1" />
3231
<package id="NUnit.Extension.NUnitProjectLoader" version="3.5.0" targetFramework="net461" />
3332
<package id="NUnit.Extension.NUnitV2Driver" version="3.7.0" targetFramework="net461" />
3433
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />

0 commit comments

Comments
 (0)