如何在多个设备上并行运行所有 Android 仪器测试

问题描述 投票:0回答:1

我正在尝试使用

adb shell am instrument
命令在多个设备上同时运行所有浓缩咖啡测试。想知道有没有办法。我不想跨设备分发我的测试,我想在所有连接的设备上运行所有测试。

我尝试使用 gradle 命令,但我无法更改跑步者(Allure)。

android gradle adb android-espresso android-instrumentation
1个回答
0
投票

只需在后台运行进程

serialnos=( "serialno1" "serialno2" "serialno3" )
for s in ${serialnos[@]}; do
  adb -s "$s" shell am instrument ... &
done
© www.soinside.com 2019 - 2024. All rights reserved.