Make XCTest output as pretty as `yarn`

XCTest output is unclear and feels unmodern. Any plans to make it pretty and clear as yarn test?


That would be cool. But is that a Swift thing? Or would that be more Xcode’s purview?

Both really. From an open source point of view, swift test's output could be greatly improved and Xcode could adopt the same approach since the output is pretty much the same. (Additionally, it would be great if Xcode filtered the stupid system os_log calls so it doesn't pollute app output, but that's an Xcode issue. Xcode's terminal is pretty terrible compared to other modern IDEs and text editors.)

You can currently use xcpretty to filter the output from Xcode (and maybe SPM) into something actually readable by humans, just not in Xcode. For example, Fastlane uses xcpretty to clean up the output into something nice. For command line builds and CI, Fastlane gives you far better output.


I didn't even realize that swift test was a thing! I'd best look into that...

Just adding ways to customize the output would probably go a long way. At least then libraries like Quick & Nimble could improve that part of the experience.

1 Like

Yep, but xcpretty is basically unmaintained and there are numerous bugs e.g. on Linux that are only fixed in forks that were never merged. Plus, xcpretty swallows any kind of useful output (e.g. in case of errors). We use it, but it's not nice.

Terms of Service

Privacy Policy

Cookie Policy