我正在使用快車道快照工具爲應用屏幕拍攝快照。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 –