XCTest output to a file
问题 I am able to run XCTests using xcodebuild test command. But when I run this command it outputs the build log and then there is log from test at the end. Is there a way where I can redirect only the output of test (no build logs) to a separate file? I couldn't find anything in xcodebuild command. Regards Dev 回答1: You can use ocunit2junit https://github.com/ciryon/OCUnit2JUnit to parse the build log output into junit xml for use with Jenkins. This works with XCTest as well. xcodebuild test