简体   繁体   English

通过终端在Xcode 8中创建UI测试

[英]create UI Test in Xcode 8 via terminal

Is there a way to actually create UI Tests in Xcode8 via the terminal? 有没有一种方法可以通过终端在Xcode8中实际创建UI测试? I am aware that UI Tests are usually created via Xcode itself but i would like to do it via the terminal and automate the whole process. 我知道UI测试通常是通过Xcode本身创建的,但是我想通过终端执行并自动完成整个过程。 Thanks! 谢谢!

you can use xcodebuild command to run the test in Xcode. 您可以使用xcodebuild命令在Xcode中运行测试。

like: 喜欢:

xcodebuild -workspace ${WORKSPACE_NAME} \
 -scheme ${SCHEME_NAME} \
 -destination "${DESTINATION}" \
 -derivedDataPath "${OUT_PATH}" \
 test

do not forget to set the scheme shared. 不要忘记设置共享方案​​。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM