Sha256: b2b1434ccb77be4d93f83fed50bb90ec0fbf79898cb4c69b7fa9e529d133bdf4

Contents?: true

Size: 1.61 KB

Versions: 501

Compression:

Stored size: 1.61 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://docs.fastlane.tools/actions/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: [https://docs.fastlane.tools/actions/xctool/](https://docs.fastlane.tools/actions/xctool/)."
        ].join("\n")
      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

501 entries across 501 versions & 5 rubygems

Version Path
fastlane-2.225.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.224.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.223.1 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.223.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.222.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.221.1 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.221.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.220.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.219.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.218.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.217.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.216.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.215.1 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.215.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.214.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.213.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.212.2 fastlane/lib/fastlane/actions/xctool.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/actions/xctool.rb