Skip to content

Commit 6b66179

Browse files
committed
- Generate binlogs during test run.
1 parent bc363d6 commit 6b66179

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ test_script:
5151
artifacts:
5252
- path: .\GitExtensions.PluginManager.*.zip
5353
- path: .\GitExtensions.PluginManager.*.nupkg
54+
- path: .\*.binlog
5455

5556
#---------------------------------#
5657
# deployment configuration #

tools/Run-Tests.ps1

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Push-Location $PSScriptRoot;
22

3-
dotnet test ..\test\PackageManager.NuGet.Tests\PackageManager.NuGet.Tests.csproj -c Release --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU
4-
dotnet test ..\test\PackageManager.Tests\PackageManager.Tests.csproj -c Release --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU
3+
$targetPath = '..\';
4+
5+
$isAppveyor = $True -eq $env:APPVEYOR;
6+
7+
If (!$isAppveyor)
8+
{
9+
Write-Host "Running locally";
10+
11+
$targetPath = Join-Path $targetPath 'artifacts';
12+
}
13+
14+
dotnet test ..\test\PackageManager.NuGet.Tests\PackageManager.NuGet.Tests.csproj -c Release --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU -bl:$targetPath\build-PackageManager.NuGet.Tests.binlog
15+
dotnet test ..\test\PackageManager.Tests\PackageManager.Tests.csproj -c Release --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU -bl:$targetPath\build-PackageManager.Tests.binlog
516

617
Pop-Location;

0 commit comments

Comments
 (0)