Custom formatter for xcpretty with some syntactic sugar for presentation on TeamCity.
This formatter is not distriguted currently. Install by cloning the repo and building/installing. Sorry 🤷
Specify xcpretty-jane-teamcity-formatter
as a custom formatter to xcpretty
:
#!/bin/bash
xcodebuild | xcpretty -f `xcpretty-jane-teamcity-formatter`
The --formatter
option takes a file path as an argument, which is returned by the xcpretty-jane-teamcity-formatter
binary. It must be evaluated before the xcpretty arguments are evaluated, hence the backtick wrapping. The specified file must return a Ruby subclass of XCPretty::Formatter
, which will then receive formatter_*
method invocations as the build output is parsed.