This commit is contained in:
Jerome Laban 2019-12-04 08:52:10 -05:00
Родитель e07d72b957
Коммит 9629471e04
2 изменённых файлов: 18 добавлений и 15 удалений

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

@ -36,7 +36,16 @@ $ANDROID_HOME/platform-tools/adb devices
echo "Emulator started"
export UNO_UITEST_SCREENSHOT_PATH=$BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/android-$ANDROID_SIMULATOR_APILEVEL
if [ "$UITEST_SNAPSHOTS_ONLY" == 'true' ];
then
export TEST_FILTERS="namespace == 'SamplesApp.UITests.Snap'"
export SCREENSHOTS_FOLDERNAME=android-$ANDROID_SIMULATOR_APILEVEL-Snap
else
export TEST_FILTERS="namespace != 'SamplesApp.UITests.Snap'"
export SCREENSHOTS_FOLDERNAME=android-$ANDROID_SIMULATOR_APILEVEL
fi
export UNO_UITEST_SCREENSHOT_PATH=$BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/$SCREENSHOTS_FOLDERNAME
export UNO_UITEST_PLATFORM=Android
export UNO_UITEST_ANDROIDAPK_PATH=$BUILD_SOURCESDIRECTORY/build/uitests-android-build/android/uno.platform.unosampleapp-Signed.apk
@ -46,13 +55,6 @@ mono nuget/NuGet.exe install NUnit.ConsoleRunner -Version 3.10.0
mkdir -p $UNO_UITEST_SCREENSHOT_PATH
if [ "$UITEST_SNAPSHOTS_ONLY" == 'true' ];
then
export TEST_FILTERS="namespace == 'SamplesApp.UITests.Snap'"
else
export TEST_FILTERS="namespace != 'SamplesApp.UITests.Snap'"
fi
mono $BUILD_SOURCESDIRECTORY/build/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe \
--inprocess \
--agents=1 \
@ -61,6 +63,6 @@ mono $BUILD_SOURCESDIRECTORY/build/NUnit.ConsoleRunner.3.10.0/tools/nunit3-conso
$BUILD_SOURCESDIRECTORY/src/SamplesApp/SamplesApp.UITests/bin/$BUILDCONFIGURATION/net47/SamplesApp.UITests.dll \
|| true
$ANDROID_HOME/platform-tools/adb shell logcat -d > $BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/android-$ANDROID_SIMULATOR_APILEVEL/android-device-log.txt
$ANDROID_HOME/platform-tools/adb shell logcat -d > $BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/$SCREENSHOTS_FOLDERNAME/android-device-log.txt
cp $UNO_UITEST_ANDROIDAPK_PATH $BUILD_ARTIFACTSTAGINGDIRECTORY

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

@ -16,16 +16,12 @@ cd $BUILD_SOURCESDIRECTORY/build
mono nuget/nuget.exe install NUnit.ConsoleRunner -Version 3.10.0
export UNO_UITEST_PLATFORM=iOS
export UNO_UITEST_IOSBUNDLE_PATH=$BUILD_SOURCESDIRECTORY/src/SamplesApp/SamplesApp.iOS/bin/iPhoneSimulator/Release/SamplesApp.app
export UNO_UITEST_SCREENSHOT_PATH=$BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/ios
mkdir -p $UNO_UITEST_SCREENSHOT_PATH
if [ "$UITEST_SNAPSHOTS_ONLY" == 'true' ];
then
export SCREENSHOTS_FOLDERNAME=ios-Snap
export TEST_FILTERS="namespace == 'SamplesApp.UITests.Snap'"
else
export SCREENSHOTS_FOLDERNAME=ios
export TEST_FILTERS=" \
namespace = 'SamplesApp.UITests.Windows_UI_Xaml_Controls.ButtonTests' or \
namespace = 'SamplesApp.UITests' or \
@ -39,6 +35,11 @@ export TEST_FILTERS=" \
"
fi
export UNO_UITEST_PLATFORM=iOS
export UNO_UITEST_IOSBUNDLE_PATH=$BUILD_SOURCESDIRECTORY/src/SamplesApp/SamplesApp.iOS/bin/iPhoneSimulator/Release/SamplesApp.app
export UNO_UITEST_SCREENSHOT_PATH=$BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/$SCREENSHOTS_FOLDERNAME
mkdir -p $UNO_UITEST_SCREENSHOT_PATH
mono $BUILD_SOURCESDIRECTORY/build/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe \
--inprocess \