All Projects → diogot → Danger Xcode_summary

diogot / Danger Xcode_summary

Licence: mit
A Danger plugin that shows all build errors, warnings and unit tests results generated from xcodebuild.

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Danger Xcode summary

Read Only Coding
Automator services to make coding in Xcode easier
Stars: ✭ 82 (-16.33%)
Mutual labels:  xcode
Coremldemo
A simple demo for Core ML
Stars: ✭ 90 (-8.16%)
Mutual labels:  xcode
Collectionnode
a collectionView made for Sprite Kit
Stars: ✭ 96 (-2.04%)
Mutual labels:  xcode
Sfacecompare
Simple lib for iOS to find and compare faces.
Stars: ✭ 83 (-15.31%)
Mutual labels:  xcode
Suitcase
A flexible command line tool for instantly deploying user interfaces for simple commands and scripts.
Stars: ✭ 1,287 (+1213.27%)
Mutual labels:  xcode
Xfunnyeditor
Xcode plugin to display an image on the background of the editor
Stars: ✭ 92 (-6.12%)
Mutual labels:  xcode
Phimpme Ios
Phimp.me - Photo Image Editor and Sharing App. Phimp.me is a Photo App for iOS that aims to replace proprietary photo applications. It offers features such as taking photos, adding filters, editing images and uploading them to social networks.
Stars: ✭ 79 (-19.39%)
Mutual labels:  xcode
Xcodeproj
📝 Read, update and write your Xcode projects
Stars: ✭ 1,354 (+1281.63%)
Mutual labels:  xcode
Xmlmapper
A simple way to map XML to Objects written in Swift
Stars: ✭ 90 (-8.16%)
Mutual labels:  xcode
Pluggableappdelegate
!! No longer supported !! A lightweight service-oriented AppDelegate for iOS, made in Swift.
Stars: ✭ 96 (-2.04%)
Mutual labels:  xcode
Swiftgif
[UNMAINTAINED] 🌠 A small UIImage extension with gif support
Stars: ✭ 1,255 (+1180.61%)
Mutual labels:  xcode
Videngine
3D graphics for iOS using Metal and Swift
Stars: ✭ 86 (-12.24%)
Mutual labels:  xcode
Mvvm Ac
Xcode 10 Template For MVVM
Stars: ✭ 94 (-4.08%)
Mutual labels:  xcode
Statefultabview
A SwiftUI TabView that retains the state of each tab as well as some other goodies.
Stars: ✭ 83 (-15.31%)
Mutual labels:  xcode
Awesome Xcode Scripts
A curated list of useful xcode scripts 📝 .
Stars: ✭ 97 (-1.02%)
Mutual labels:  xcode
Xcodecolorsense
🎈 An Xcode plugin that makes working with color easier
Stars: ✭ 79 (-19.39%)
Mutual labels:  xcode
R.objc
Get autocompleted resources like images, localized strings and storyboards in ObjC projects
Stars: ✭ 92 (-6.12%)
Mutual labels:  xcode
Stompclientlib
Simple STOMP Client library, Swift 3 and 4, 4.2, 5 compatible
Stars: ✭ 99 (+1.02%)
Mutual labels:  xcode
Simctl
Ruby interface to xcrun simctl
Stars: ✭ 97 (-1.02%)
Mutual labels:  xcode
Mscircularslider
A fully-featured, powerful circular slider for iOS applications
Stars: ✭ 94 (-4.08%)
Mutual labels:  xcode

danger-xcode_summary

License Gem Version Build Status

A Danger plugin that shows all build errors, warnings and unit tests results generated from xcodebuild.

You need to use xcpretty with xcpretty-json-formatter to generate a JSON file that this plugin can read.

Using danger-swift? You may want to take a look at danger-swift-xcodesummary.

How does it look?

1 Error
🚫 MyWeightTests.MyWeightTests: testError, failed - :w:
MyWeightTests/MyWeightTests.swift#L26
2 Warnings
⚠️ MyWeight/ViewController.swift#L35: initialization of immutable value ‘bla’ was never used; consider replacing with assignment to ‘_’ or removing it
let bla = "unused variable"
⚠️ Bla.m#L32: Value stored to ‘theme’ is never read
theme = *ptr++;
1 Message
📖 Executed 5 tests, with 1 failure (0 unexpected) in 0.032 (0.065) seconds

Installation

Add this line to your Gemfile:

gem 'danger-xcode_summary'

Usage

Just add this line to your Dangerfile:

xcode_summary.report 'xcodebuild.json'

You can also ignore warnings from certain files by setting ignored_files: Warning: ignored_files patterns applied on relative paths.

# Ignoring warnings from Pods
xcode_summary.ignored_files = 'Pods/**'

# Ignoring specific warnings
xcode_summary.ignored_results { |result|
  result.message.start_with? 'ld' # Ignore ld_warnings
}

xcode_summary.report 'xcodebuild.json'

You can use ignores_warnings to supress warnings and shows only errors.

xcode_summary.ignores_warnings = true

You can use inline_mode. When this value is enabled, each warnings and errors are commented on each lines.

# Comment on each lines
xcode_summary.inline_mode = true
xcode_summary.report 'xcodebuild.json'

You can get warning and error number by calling warning_error_count. The return will be a JSON string contains warning and error count, e.g {"warnings":1,"errors":3}:

result = xcode_summary.warning_error_count 'xcodebuild.json'

License

danger-xcode_summary is released under the MIT license. See LICENSE.txt for details.

Development

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Run bundle exec rake spec to run the tests.
  4. Use bundle exec guard to automatically have tests run as you make changes.
  5. Make your changes.
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].