Home

Awesome

xbluepill plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-xbluepill, add it to your project by running:

fastlane add_plugin xbluepill

About xbluepill

It is a fastlane plugin that allows to use bluepill (linkedin library) as a fastlane command. It supports Xcode 10.0. There are some differences from other plugins:

Supported options are almost the same as in Bluepill. But there are some differences since plugin builds a project by itself:

Config ArgumentsCommand Line ArgumentsExplanationRequiredDefault value
app-aThe path to the host application to execute (your .app)Nn/a
workspaceThe path to the .xworkspace of your project. NOTE: Required if no project option set.Nn/a
projectThe path to the .xcodeproj of your project. NOTE: Required if no workspace option set.Nn/a
schemeYour test scheme.Yn/a
reset_simulatorsDelete and re-create all iOS and tvOS simulators.Nfalse
output-dir-oDirectory where to put output log files (bluepill only)Yn/a
config-cRead options from the specified configuration file instead of the command lineNn/a
device-dOn which device to run the app.NiPhone 6
exclude-xExclude a testcase in the set of tests to run (takes priority over include).Nempty
headless-HRun in headless mode (no GUI).Noff
xcode-path-XPath to xcode.Nxcode-select -p
include-iInclude a testcase in the set of tests to run (unless specified in exclude).Nall tests
json-output-JPrint test timing information in JSON format.Noff
junit-output-jPrint results in JUnit format.Ntrue
list-tests-lOnly list tests in bundleNfalse
num-sims-nNumber of simulators to run in parallel. (bluepill only)N4
plain-output-pPrint results in plain text.Ntrue
printf-config-PPrint a configuration file suitable for passing back using the -c option.Nn/a
error-retries-RNumber of times to recover from simulator/app crashing/hanging and continue runningN5
failure-tolerance-fNumber of times to retry on test failuresN0
only-retry-failed-FWhen failure-tolerance > 0, only retry tests that failedNfalse
runtime-rWhat runtime to use.NiOS 11.1
stuck-timeout-STimeout in seconds for a test that seems stuck (no output).N300s
test-timeout-TTimeout in seconds for a test that is producing output.N300s
test-bundle-path-tThe path to the test bundle to execute (single .xctest).Nn/a
additional-unit-xctestsn/aAdditional XCTest bundles that is not Plugin folderNn/a
additional-ui-xctestsn/aAdditional XCTUITest bundles that is not Plugin folderNn/a
repeat-count-CNumber of times we'll run the entire test suite (used for load testing).N1
no-split-NTest bundles you don't want to be packed into different groups to run in parallel.Nn/a
quiet-qTurn off all output except fatal errors.NYES
reuse-simulatorn/aEnable reusing simulators between test bundlesNNO
diagnosticsn/aEnable collection of diagnostics in outputDir in case of test failuresNNO
help-hHelp.Nn/a
runner-app-path-uThe test runner for UI tests.Nn/a
screenshots-directoryn/aDirectory where simulator screenshots for failed ui tests will be storedNn/a
video-paths-VA list of videos that will be saved in the simulatorsNn/a
image-paths-IA list of images that will be saved in the simulatorsNn/a

Example

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.

Note to author: Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.

License of Bluepill

BSD 2-CLAUSE LICENSE

Copyright 2016 LinkedIn Corporation. All Rights Reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.