Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 365fbe0

Browse files
committed
Use dotnet test to run .NET Core tests in AppVeyor
1 parent d0623f9 commit 365fbe0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

appveyor.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,13 @@ build:
2020
after_build:
2121
- cmd: dotnet pack src\GitTools.Testing\GitTools.Testing.csproj /p:PackageVersion="%GitVersion_NuGetVersion%" /p:NoBuild=true /p:PackageOutputPath=%APPVEYOR_BUILD_FOLDER%
2222
- cmd: appveyor PushArtifact "GitTools.Testing.%GitVersion_NuGetVersion%.nupkg"
23+
24+
# Setting this off until the auto-detection for dotnet test tooling in AppVeyor
25+
# is integrated. https://github.com/appveyor/ci/issues/1404
26+
# The test_script is used as a workaround to fix this.
27+
test: off
28+
test_script:
29+
- cmd: dotnet test src\GitTools.Testing.Tests\GitTools.Testing.Tests.csproj --configuration %Configuration% --no-build
30+
2331
cache:
2432
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified

src/GitTools.Testing.Tests/GitTools.Testing.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<PackageReference Include="xunit.abstractions" Version="2.0.1" />
2626
<PackageReference Include="xunit.core" Version="2.3.0-beta3-build3705" />
2727
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0-beta3-build3705" />
28+
<PackageReference Include="xunit.runner.console" Version="2.3.0-beta3-build3705" />
29+
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0-beta2-build3683" />
2830
</ItemGroup>
2931

3032
<ItemGroup Condition="'$(TargetFramework)' == 'net452'">

0 commit comments

Comments
 (0)