All Projects → thii → Xcbeautify

thii / Xcbeautify

Licence: mit
A little beautifier tool for xcodebuild

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Xcbeautify

Alamofire
Elegant HTTP Networking in Swift
Stars: ✭ 36,896 (+9818.28%)
Mutual labels:  xcode, swift-package-manager
Licenseplist
A license list generator of all your dependencies for iOS applications
Stars: ✭ 1,996 (+436.56%)
Mutual labels:  xcode, swift-package-manager
Surmagic
🚀 The better way to deal with Binary Frameworks on iOS, Mac Catalyst, tvOS, macOS, and watchOS. Create XCFrameworks with ease.
Stars: ✭ 119 (-68.01%)
Mutual labels:  xcode, swift-package-manager
Swift5 Module Template
An opinionated starting point for awesome, reusable Swift 5 modules
Stars: ✭ 331 (-11.02%)
Mutual labels:  xcode, swift-package-manager
Dtpagercontroller
A fully customizable container view controller to display a set of ViewControllers in a horizontal scroll view. Written in Swift.
Stars: ✭ 240 (-35.48%)
Mutual labels:  xcode, swift-package-manager
Appicon
AppIcon generates *.appiconset contains each resolution image for iOS
Stars: ✭ 1,454 (+290.86%)
Mutual labels:  xcode, swift-package-manager
Natrium
A pre-build (Swift) script to alter your Xcode project at pre-build-time per environment, build configuration and target.
Stars: ✭ 131 (-64.78%)
Mutual labels:  xcode, swift-package-manager
Dtgradientbutton
Easy way to set gradient background to your buttons.
Stars: ✭ 76 (-79.57%)
Mutual labels:  xcode, swift-package-manager
Dtphotoviewercontroller
A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer.
Stars: ✭ 212 (-43.01%)
Mutual labels:  xcode, swift-package-manager
Carting
🚘 A simple tool for updating Carthage script phase
Stars: ✭ 182 (-51.08%)
Mutual labels:  xcode, swift-package-manager
Easing
Easing functions in Swift 5
Stars: ✭ 107 (-71.24%)
Mutual labels:  xcode, swift-package-manager
Roundcode
Custom rounded QR code with lots of customization.
Stars: ✭ 267 (-28.23%)
Mutual labels:  xcode, swift-package-manager
Xmlmapper
A simple way to map XML to Objects written in Swift
Stars: ✭ 90 (-75.81%)
Mutual labels:  xcode, swift-package-manager
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+2777.96%)
Mutual labels:  xcode, swift-package-manager
Statefultabview
A SwiftUI TabView that retains the state of each tab as well as some other goodies.
Stars: ✭ 83 (-77.69%)
Mutual labels:  xcode, swift-package-manager
Swift Xcode
Use Swift Package Manager directly from within Xcode, w/o the cmdline
Stars: ✭ 121 (-67.47%)
Mutual labels:  xcode, swift-package-manager
Mockswift
MockSwift is a Mock library written in Swift.
Stars: ✭ 56 (-84.95%)
Mutual labels:  xcode, swift-package-manager
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+217.2%)
Mutual labels:  xcode, swift-package-manager
Cdmarkdownkit
An extensive Swift framework providing simple and customizable markdown parsing.
Stars: ✭ 158 (-57.53%)
Mutual labels:  xcode, swift-package-manager
xcbeautify
A little beautifier tool for xcodebuild
Stars: ✭ 687 (+84.68%)
Mutual labels:  swift-package-manager, beautifier

xcbeautify

Build Status Latest Release License

xcbeautify is a little beautifier tool for xcodebuild.

Similar to xcpretty, but faster.

Features

  • [x] 2x faster than xcpretty.
  • [x] Human-friendly and colored output.
  • [x] Supports the new build system's output.
  • [x] Supports Xcode's parallel testing output.
  • [x] Supports formatting Swift Package Manager output.
  • [x] Supports formatting Bazel output.
  • [x] Supports macOS & Linux.
  • [x] Written in Swift: xcbeautify compiles to a static binary which you can bring anywhere. This also means less Ruby-dependant in your development environment and CI.

Note: xcbeautify does not support generating JUnit or HTML test reports. In fact, you shouldn't rely on xcodebuild's output to generate test reports. We suggest using trainer or XCTestHTMLReport to generate test reports from xcodebuild's generated TestSummaries.plist files.

Fun fact

xcbeautify uses itself to format its CI build logs.

Installation

If you use macOS 10.14.3 or earlier, install Swift 5 Runtime Support for Command Line Tools first:

brew cask install thii/swift-runtime/swift-runtime

Homebrew

brew install xcbeautify

Swiftbrew

swift brew install thii/xcbeautify

Mint

mint install thii/xcbeautify

CocoaPods

pod 'xcbeautify'

The xcbeautify binary will be installed at Pods/xcbeautify/xcbeautify

Build from source

git clone https://github.com/thii/xcbeautify.git
cd xcbeautify
make install

Usage

xcodebuild [flags] | xcbeautify

If you want xcbeautify to exit with the same status code as xcodebuild (e.g. on a CI):

set -o pipefail && xcodebuild [flags] | xcbeautify

For parallel and concurrent destination testing, it helps to use unbuffered I/O for stdout and to redirect stderr to stdout.

NSUnbufferedIO=YES xcodebuild [flags] 2>&1 | xcbeautify
swift test [flags] 2>&1 | xcbeautify

Parse Bazel's building and testing output:

set -o pipefail && bazel build //path/to/package:target 2>&1 | xcbeautify
set -o pipefail && bazel test //path/to/package:target 2>&1 | xcbeautify

Future work

  • [ ] Write more tests

Development

Generate Xcode project:

make xcode

Build with Bazel:

bazel build //Sources/xcbeautify

Release a new version, say x.y.z:

make release version=x.y.z

Contributing

Just send a PR! We don't bite ;)

Don't have a GitHub account or prefer old-school patching via email? Send your patch to the project's mailing list.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].