Update logging path for Android.
This commit is contained in:
Родитель
7116d8e29b
Коммит
06f0dfe49f
|
@ -119,7 +119,7 @@ jobs:
|
|||
chmod +x $(build.sourcesdirectory)/build/android-uitest-run.sh
|
||||
$(build.sourcesdirectory)/build/android-uitest-run.sh
|
||||
|
||||
displayName: Setup Android simulator
|
||||
displayName: Build and Run Android Tests
|
||||
|
||||
env:
|
||||
BUILD_SOURCESDIRECTORY: "$(build.sourcesdirectory)"
|
||||
|
@ -162,7 +162,7 @@ jobs:
|
|||
chmod +x $(build.sourcesdirectory)/build/ios-uitest-run.sh
|
||||
$(build.sourcesdirectory)/build/ios-uitest-run.sh
|
||||
|
||||
displayName: Build and Test
|
||||
displayName: Build and Run iOS Test
|
||||
|
||||
env:
|
||||
BUILD_SOURCESDIRECTORY: "$(build.sourcesdirectory)"
|
||||
|
|
|
@ -34,4 +34,6 @@ mono nuget.exe install NUnit.ConsoleRunner -Version 3.10.0
|
|||
|
||||
mkdir -p $UNO_UITEST_SCREENSHOT_PATH
|
||||
|
||||
mono $BUILD_SOURCESDIRECTORY/build/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe $BUILD_SOURCESDIRECTORY/src/Sample/Sample.UITests/bin/Release/net47/Sample.UITests.dll
|
||||
mono $BUILD_SOURCESDIRECTORY/build/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe \
|
||||
$BUILD_SOURCESDIRECTORY/src/Sample/Sample.UITests/bin/Release/net47/Sample.UITests.dll \
|
||||
> $BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/android/nunit-log.txt 2>&1
|
||||
|
|
|
@ -152,7 +152,7 @@ namespace Uno.UITests.Helpers
|
|||
Console.WriteLine($"App start failed, retrying in 2 seconds with complete app restart ({e.Message})");
|
||||
|
||||
#if DEBUG
|
||||
Console.WriteLine($"{e.Message}");
|
||||
Console.WriteLine($"Exception: {e.Message}");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -216,6 +216,8 @@ namespace Uno.UITests.Helpers
|
|||
{
|
||||
if(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANDROID_HOME")))
|
||||
{
|
||||
Console.WriteLine("Providing default ANDROID_HOME and JAVA_HOME variables, because ANDROID_HOME could not be found.");
|
||||
|
||||
// To set in case of Xamarin.UITest errors
|
||||
//
|
||||
Environment.SetEnvironmentVariable("ANDROID_HOME", @"C:\Program Files (x86)\Android\android-sdk");
|
||||
|
@ -225,6 +227,7 @@ namespace Uno.UITests.Helpers
|
|||
var androidConfig = Xamarin.UITest.ConfigureApp
|
||||
.Android
|
||||
.Debug()
|
||||
.LogDirectory(Environment.GetEnvironmentVariable(UITEST_SCREENSHOT_PATH))
|
||||
.EnableLocalScreenshots();
|
||||
|
||||
if(GetAndroidApkPath() is string bundlePath)
|
||||
|
|
Загрузка…
Ссылка в новой задаче