diff --git a/appveyor.yml b/appveyor.yml index f6253a0..842a0d4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -51,6 +51,7 @@ test_script: artifacts: - path: .\GitExtensions.PluginManager.*.zip - path: .\GitExtensions.PluginManager.*.nupkg +- path: .\*.binlog #---------------------------------# # deployment configuration # diff --git a/src/PackageManager.NuGet/Models/NuGetPackageSourceCollection.cs b/src/PackageManager.NuGet/Models/NuGetPackageSourceCollection.cs index d8b3f00..b7169db 100644 --- a/src/PackageManager.NuGet/Models/NuGetPackageSourceCollection.cs +++ b/src/PackageManager.NuGet/Models/NuGetPackageSourceCollection.cs @@ -107,7 +107,7 @@ public int MoveDown(IPackageSource source) { Sources.RemoveAt(index); Sources.Insert(++index, target); - SavePackageSources(); + SavePackageSources(true); } return index; diff --git a/test/PackageManager.Tests/ViewModels/Commands/TestCommands.cs b/test/PackageManager.Tests/ViewModels/Commands/TestCommands.cs index 1ede0c9..f356c00 100644 --- a/test/PackageManager.Tests/ViewModels/Commands/TestCommands.cs +++ b/test/PackageManager.Tests/ViewModels/Commands/TestCommands.cs @@ -15,7 +15,7 @@ namespace PackageManager.ViewModels.Commands [TestClass] public class TestCommands { - private const string ExtractPath = @"D:\"; + private const string ExtractPath = @".\"; [TestMethod] public void Install() diff --git a/tools/Run-Tests.ps1 b/tools/Run-Tests.ps1 index 3b13d7e..7a942c5 100644 --- a/tools/Run-Tests.ps1 +++ b/tools/Run-Tests.ps1 @@ -1,6 +1,17 @@ Push-Location $PSScriptRoot; -dotnet test ..\test\PackageManager.NuGet.Tests\PackageManager.NuGet.Tests.csproj -c Release --no-build --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU -dotnet test ..\test\PackageManager.Tests\PackageManager.Tests.csproj -c Release --no-build --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU +$targetPath = '..\'; + +$isAppveyor = $True -eq $env:APPVEYOR; + +If (!$isAppveyor) +{ + Write-Host "Running locally"; + + $targetPath = Join-Path $targetPath 'artifacts'; +} + +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 +dotnet test ..\test\PackageManager.Tests\PackageManager.Tests.csproj -c Release --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU -bl:$targetPath\build-PackageManager.Tests.binlog Pop-Location; \ No newline at end of file