我已经开始并行运行我的用户界面测试,以提高性能。但是,当使用 xcpretty 时,我现在不知道哪些测试已经通过,也不知道是什么导致测试失败(我只知道哪些测试失败了)。有什么办法可以解决这个问题吗?或者是 xcpretty 的替代方案,可以处理并行测试中的输出。我希望有一个很好的终端输出,就像使用顺序测试时一样。
\n\n这是我的脚本:
\n\n xcodebuild \\\n -workspace \'./code/ios/myApp/myApp.workspace\' \\\n -scheme \'myApp\' \\\n -destination \'platform=iOS Simulator,name=iPhone 6\' \\\n test | xcpretty -c \nRun Code Online (Sandbox Code Playgroud)\n\n这是我按顺序运行测试时得到的输出(以及我想在并行运行它们时继续获得的输出):
\n\nSelected tests\n\n[15:35:45]: \xe2\x96\xb8 Test Suite UITests.xctest started\n\n[15:35:45]: \xe2\x96\xb8 RegisterTest\n\n[15:36:48]: \xe2\x96\xb8 \xe2\x9c\x97 testRegisterBrazil, failed - Couldn\'t find: \n"homeBottomBar_myAccountButton" Button\n\n[15:42:50]: \xe2\x96\xb8 \xe2\x9c\x93 testRegisterUSA (61.241 seconds)\n\n[15:42:50]: \xe2\x96\xb8 Executed 4 tests, with 1 failures (1 unexpected) in 425.314 (425.319) seconds\nRun Code Online (Sandbox Code Playgroud)\n\n这是我现在得到的输出:
\n\nFailing tests:\n\n UITests:\n\n RegisterTest.testRegisterBrazil()\n** TEST FAILED **\nRun Code Online (Sandbox Code Playgroud)\n