Sha256: fde4d6ad75bdef2fb84bb91d617dadb2e1120afafc5abedd792d96ad65f7f3d0
Contents?: true
Size: 1.4 KB
Versions: 4
Compression:
Stored size: 1.4 KB
Contents
# danger-xcprofiler [![Build Status](https://travis-ci.org/giginet/danger-xcprofiler.svg?branch=master)](https://travis-ci.org/giginet/danger-xcprofiler) [![Coverage Status](https://coveralls.io/repos/github/giginet/danger-xcprofiler/badge.svg?branch=master)](https://coveralls.io/github/giginet/danger-xcprofiler?branch=master) [![Gem Version](https://badge.fury.io/rb/danger-xcprofiler.svg)](https://badge.fury.io/rb/danger-xcprofiler) [danger](https://github.com/danger/danger) plugin for asserting Swift compilation time. See detail for README of [xcprofiler](https://github.com/giginet/xcprofiler). ![](assets/warning.png) ## Installation Add this line to your Gemfile: ```sh gem 'danger-xcprofiler' ``` ## Usage Just add this line to your Dangerfile: ```ruby xcprofiler.report 'MyApp' ``` If compilation times of each methods are exceeded the thresholds, `danger` adds inline comment to your PR. Default thresholds is 50ms for warning, 100ms for failure. If you want to change thresholds see the following: ```ruby # Defines inline_mode xcprofiler.inline_mode = false # Defines thresholds (ms) xcprofiler.thresholds = { warn: 100, fail: 500 } xcprofiler.report 'MyApp' ``` ## 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.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
danger-xcprofiler-0.4.0 | README.md |
danger-xcprofiler-0.3.1 | README.md |
danger-xcprofiler-0.3.0 | README.md |
danger-xcprofiler-0.2.0 | README.md |