iOS - 如何在快车道快照中传递构建参数
问题描述:
我正在使用快车道快照工具为应用屏幕拍摄快照。iOS - 如何在快车道快照中传递构建参数
据FASTLANE社区,我需要运行,
fastlane snapshot init
然后配置项目的UI测试目标之后,我需要运行
fastlane snapshot
但是,如果我想提供一些编译参数,如,xcodebuild测试只测试params,我该怎么做。比如我想建立像,
xcodebuild test -workspace <path>
-scheme <name>
-destination <specifier>
-only-testing:TestBundleA/TestSuiteA/TestCaseA
-only-testing:TestBundleB/TestSuiteB
-only-testing:TestBundleC
我看,
fastlane snapshot --help
然后我Snapfile增加,
xcargs -only-testing:TestBundleB/TestSuiteB
但是这给了错误
(EVAL):36:语法错误,意想不到的tSYMBEG,期待keyword_do或 '{' 或 '(' 只测试:TestBundleB/TestSuiteB
我怎样才能解决这个问题?
我尝试过与其他参数,但失败。你可以给我一个样本吗?仅当uitest运行快照时如何运行特定的测试用例? –
你可以更新你的问题与你尝试过,所以我有一些上下文? –
问题更新请参阅。 @LyndseyFerguson –