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.
| 1 Error | |
|---|---|
| 🚫 |
MyWeightTests.MyWeightTests: testError, failed - :w: MyWeightTests/MyWeightTests.swift#L26 |
<tr>
<td><g-emoji alias="warning" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji></td>
<td>
MyWeight/ViewController.swift#L35: initialization of immutable value ‘bla’ was never used; consider replacing with assignment to ‘_’ or removing it
let bla = "unused variable"
| 2 Warnings | |
|---|---|
Bla.m#L32: Value stored to ‘theme’ is never read
theme = *ptr++;
|
<tr>
<td><g-emoji alias="book" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f4d6.png">📖</g-emoji></td>
<td>Executed 5 tests, with 1 failure (0 unexpected) in 0.032 (0.065) seconds</td>
</tr>
</tr>
| 1 Message |
|---|
Add this line to your Gemfile:
gem 'danger-xcode_summary'Just add this line to your Dangerfile:
xcode_summary.report 'xcodebuild.json'You can also ignore warnings from certain files by setting ignored_files:
# Ignoring warnings from Pods
xcode_summary.ignored_files = '**/Pods/**'
xcode_summary.report 'xcodebuild.json'danger-xcode_summary is released under the MIT license. See LICENSE.txt for details.
- Clone this repo
- Run
bundle installto setup dependencies. - Run
bundle exec rake specto run the tests. - Use
bundle exec guardto automatically have tests run as you make changes. - Make your changes.