我确实用detox为我的react-native应用程序设置了一些e2e测试。我使用detox test命令手动运行这些测试,但我找不到(无论是在排毒问题中还是在Fastlane的文档中)将这些测试直接集成到Fastlane中的方法。these options似乎都不能适应我正在寻找的东西。
有没有人以前实现过这个功能,或者我必须找到解决这个问题的办法?
提前感谢!
发布于 2020-06-16 22:19:14
我用以下方式为iOS (./ios/fastlane/Fastfile)解决了这个问题:
platform :ios do
lane :e2e do
Dir.chdir "../.." do # Navigate to the root of the project where the Detox files are placed.
sh("detox build --configuration ios.sim.release")
sh("detox test --configuration ios.sim.release --cleanup")
end
end
end和安卓(./android/fastlane/Fastfile):
platform :android do
lane :e2e do
Dir.chdir "../.." do # Navigate to the root of the project where the Detox files are placed.
sh("detox build --configuration android.emu.release")
sh("detox test --configuration android.emu.release --cleanup")
end
end
endhttps://stackoverflow.com/questions/60651758
复制相似问题