* [tests] fix msbuild tests

those tests are failing sice the move to SDK-style project for
Xaml.UnitTests

* [Build] Copy xaml.unittests artifacts

* [build] Xaml.UnitTests lives in the debug/net47 foder
This commit is contained in:
Stephane Delcroix 2018-11-17 13:13:23 +01:00 коммит произвёл GitHub
Родитель 2fd438db0e
Коммит 157bc72fe8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -67,7 +67,7 @@ namespace Xamarin.Forms.Xaml.UnitTests
Directory.CreateDirectory (tempDirectory);
//We need to copy Xamarin.Forms.targets to the test directory, to reliably import them
var xamarinFormsTargets = Path.Combine (testDirectory, "..", "..", "..", ".nuspec", XamarinFormsTargets);
var xamarinFormsTargets = Path.Combine (testDirectory, "..", "..", "..", "..", ".nuspec", XamarinFormsTargets);
if (!File.Exists (xamarinFormsTargets)) {
//NOTE: VSTS may be running tests in a staging directory, so we can use an environment variable to find the source
// https://docs.microsoft.com/en-us/vsts/build-release/concepts/definitions/build/variables?view=vsts&tabs=batch#buildsourcesdirectory

Просмотреть файл

@ -3,7 +3,9 @@ steps:
displayName: 'Download build artifact win_build'
inputs:
downloadType: specific
itemPattern: '**/*.UnitTests/bin/$(BuildConfiguration)/*'
itemPattern: |
**/*.UnitTests/bin/$(BuildConfiguration)/*
**/*.Xaml.UnitTests/bin/$(BuildConfiguration)/**/*
downloadPath: '$(Build.BinariesDirectory)'
parallelizationLimit: 20
@ -23,7 +25,7 @@ steps:
testAssemblyVer2: |
**/bin/$(BuildConfiguration)/Xamarin.Forms.Core.UnitTests.dll
**/bin/$(BuildConfiguration)/Xamarin.Forms.Pages.UnitTests.dll
**/bin/$(BuildConfiguration)/Xamarin.Forms.Xaml.UnitTests.dll
**/bin/$(BuildConfiguration)/**/Xamarin.Forms.Xaml.UnitTests.dll
searchFolder: '$(Build.BinariesDirectory)'
pathtoCustomTestAdapters: '$(Build.BinariesDirectory)/testadapters/'
codeCoverageEnabled: true