我已经尝试了 5 天来对我的 APK 文件进行基本测试。在那 5 天里,我不断地学会了如何不这样做......
我已经安装了捆绑包并使用 rbenv 管理我的 gem。我正在尝试执行
bundle exec calabash-android run <name>.apk
但它无法运行并输出:
undefined local variable or method `start_test_server_in_background' for #<Object:0x000000013132f2d0> (NameError)
./features/support/app_installation_hooks.rb:6:in `Before'
现在我已经验证了我的 Gemfile.lock 包含
calabash-android
并且 Gemfile 也包含它。
我对 calabash-android 的 Github repo 进行了一些研究,发现它是定义
operations.rb
的 gem,这意味着我技术上应该能够执行上述命令。