File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,14 @@ BeforeDiscovery {
88 # Skip Android integration tests unless an emulator has been already started
99 # by Android Device Tests, or manually when testing locally. This avoids
1010 # slowing down non-Device Test CI builds further.
11+ Install-XHarness
1112 $script :emulator = Get-AndroidEmulatorId
1213}
1314
1415Describe ' MAUI app' - ForEach @ (
1516 @ { tfm = " net9.0-android35.0" }
1617) - Skip:(-not $script :emulator ) {
1718 BeforeAll {
18- . $PSScriptRoot / ../ scripts/ device- test-utils.ps1
19- Install-XHarness
20-
2119 Remove-Item - Path " $PSScriptRoot /mobile-app" - Recurse - Force - ErrorAction SilentlyContinue
2220 Copy-Item - Path " $PSScriptRoot /net9-maui" - Destination " $PSScriptRoot /mobile-app" - Recurse - Force
2321 Push-Location $PSScriptRoot / mobile- app
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function Get-AndroidEmulatorId {
1616 }
1717 try
1818 {
19- return & adb devices | Select-String " device$" | ForEach-Object { ($_ -split " `t " )[0 ] } | Select-Object - First 1
19+ return & xharness android adb -- devices | Select-String " device$" | ForEach-Object { ($_ -split " `t " )[0 ] } | Select-Object - First 1
2020 }
2121 catch
2222 {
You can’t perform that action at this time.
0 commit comments