Sha256: 0115377d27477c9edb7011b9c19d33415fca880bbe80238a3e2bf87e8664fd6e

Contents?: true

Size: 1.59 KB

Versions: 457

Compression:

Stored size: 1.59 KB

Contents

module Fastlane
  module Actions
    class XctoolAction < Action
      def self.run(params)
        UI.important("Have you seen the new 'scan' tool to run tests? https://github.com/fastlane/fastlane/tree/master/scan")
        unless Helper.test?
          UI.user_error!("xctool not installed, please install using `brew install xctool`") if `which xctool`.length == 0
        end

        params = [] if params.kind_of? FastlaneCore::Configuration

        Actions.sh('xctool ' + params.join(' '))
      end

      def self.description
        "Run tests using xctool"
      end

      def self.details
        [
          "You can run any `xctool` action. This will require having [xctool](https://github.com/facebook/xctool) installed through [homebrew](http://brew.sh/).",
          "It is recommended to store the build configuration in the `.xctool-args` file.",
          "More information available on GitHub: https://docs.fastlane.tools/actions#xctool"
        ].join(' ')
      end

      def self.author
        "KrauseFx"
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?(platform)
      end

      def self.example_code
        [
          'xctool :test',

          '# If you prefer to have the build configuration stored in the `Fastfile`:
          xctool :test, [
            "--workspace", "\'AwesomeApp.xcworkspace\'",
            "--scheme", "\'Schema Name\'",
            "--configuration", "Debug",
            "--sdk", "iphonesimulator",
            "--arch", "i386"
          ].join(" ")'
        ]
      end

      def self.category
        :testing
      end
    end
  end
end

Version data entries

457 entries across 457 versions & 1 rubygems

Version Path
fastlane-2.67.0.beta.20171123010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.67.0.beta.20171122010004 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.66.2 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.66.1 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.67.0.beta.20171121010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.66.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171120010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171119010004 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171118010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171117010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171116010004 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171115010004 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171114010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.64.1 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171113010004 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171112010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171111010004 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171110010003 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.65.0.beta.20171109010003 fastlane/lib/fastlane/actions/xctool.rb