我正在使用 FaSTLane 插件automated_test_emulator_run
automated_test_emulator_run(
AVD_setup_path: "~/<path to your avd setup>/AVD_setup.json",
//some more tasks
)
现在尝试通过命令行运行同样的操作
fastlane automated_test_emulator_run AVD_setup_path:avd.json
但是出错了
[!] 找不到“automated_test_emulator_run”。可用车道:测试
任何提示使用任何插件并为此传递设置参数?
最佳答案
我还没有完全做到这一点,但做了类似的事情,所以我相信以下应该可以工作:
lane :your_emulator_lane do |options|
avdSetupPath = options[:AVD_setup_path]
automated_test_emulator_run(
AVD_setup_path: avdSetupPath,
)
end
然后会打电话
fastlane your_emulator_lane AVD_setup_path:avd.json
关于android - FaSTLane 将参数传递给插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48286082/