A tasteful take on XCTest
Have you ever had to run XCTests from the command line? Maybe you're running CI tests, maybe you're developing in Swift on Linux and thus don't have XCode, or maybe you were just curious as to what the output was. Regardless of the reason behind it, if you've seen the XCTest output, you know how hard to understand it can be.
Don't get me wrong, it's a very useful format jam-packed with information; but there is such a thing as too much information.
XCTasteful aims to change that. It draws on the popular 'spec' formatting to make your XCTests clean and simple to understand at a glance.
But why describe what I can show?
Disclaimer 1: XCTasteful is still decently early in development, so any feedback/ideas would be more than welcome.
Disclaimer 2: XCTasteful currently only works with swift, as it directly calls swift test
. If enough people want Obj-C support I can try to figure that out.
- Download and run the install script
cd
to your swift project (Obj-C is currently unsupported)- Run
XCTasteful
- Enjoy your legible XCTest output!
- When running on CI it is advisable to set the
--no-animation
flag
- Add more reporter types:
- Spec
- Dot matrix
- TAP
- List
- JSON
- JSON Stream?
- Min?
- Debugging!
- Obj-C support?