Force generation of automation IDs in Uno.UI project
This is required for Xamarin.UITest to find the system templates elements by name.
This commit is contained in:
Родитель
12c14f6b2f
Коммит
f4d0f9bf2d
|
@ -14,7 +14,7 @@ echo "Starting emulator"
|
|||
nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -skin 1280x800 -no-audio -no-snapshot > /dev/null 2>&1 &
|
||||
|
||||
# build the sample and tests, while the emulator is starting
|
||||
msbuild /r /p:Configuration=Release $BUILD_SOURCESDIRECTORY/src/SamplesApp/SamplesApp.Droid/SamplesApp.Droid.csproj
|
||||
msbuild /r /p:Configuration=Release "/p:IsUiAutomationMappingEnabled=true" $BUILD_SOURCESDIRECTORY/src/SamplesApp/SamplesApp.Droid/SamplesApp.Droid.csproj
|
||||
msbuild /r /p:Configuration=Release $BUILD_SOURCESDIRECTORY/src/SamplesApp/SamplesApp.UITests/SamplesApp.UITests.csproj
|
||||
|
||||
# Wait for the emulator to finish booting
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
|
||||
<!-- Force the generation of upri files for Uno.UI self localization -->
|
||||
<UnoForceProcessPRIResource>true</UnoForceProcessPRIResource>
|
||||
|
||||
<!-- Generate automation IDs in debug builds, use by UI tests. -->
|
||||
<IsUiAutomationMappingEnabled Condition="'$(Configuration)'=='Debug'">true</IsUiAutomationMappingEnabled>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="..\Uno.CrossTargetting.props" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче