Fastlane Scan:如何添加' - 截图' (xcpretty flag)?

时间:2017-11-14 08:59:36

标签: testing screenshot xcodebuild fastlane

我需要在 Fastlane Scan 运行测试后将我的屏幕截图添加到html-report,但问题是:--screenshots xcpretty 标志,而不是 xcodebuild

扫描没有此类参数,例如快照中的xcpretty_args。所以现在我被迫在没有扫描但是使用下一个脚本的情况下运行我的测试:

set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace ./MyProject.xcworkspace -scheme myScheme -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=10.3.1' -derivedDataPath 'build'
-only-testing:myTarget/myTestSuite01 test-without-building| xcpretty -r html --screenshots -r junit

那么,是否有可能以任何方式使用Scan?

0 个答案:

没有答案
相关问题