Closed 0xced closed 8 years ago
When xcodebuild is piped (even through a simple cat) the test results output becomes buffered. This is very annoying when piped through xcpretty because the test results only appear once all the tests have run.
cat
Setting the NSUnbufferedIO environment variable to YES when running xcodebuild solves this issue, see http://stackoverflow.com/questions/18995187/xcodebuild-corrupts-test-result-output-when-output-redirected-to-file/19190226#comment54275017_19190226
NSUnbufferedIO
YES
Thanks @0xced :+1:
This has been annoying me for some time. Never realized it was that simple. Good find :+1:
When xcodebuild is piped (even through a simple
cat
) the test results output becomes buffered. This is very annoying when piped through xcpretty because the test results only appear once all the tests have run.Setting the
NSUnbufferedIO
environment variable toYES
when running xcodebuild solves this issue, see http://stackoverflow.com/questions/18995187/xcodebuild-corrupts-test-result-output-when-output-redirected-to-file/19190226#comment54275017_19190226