Sha256: 3dfc5a7af4d2884a3b3d1d1cc10cccf53747e86f142fbba83bd8fd8d07311afc

Contents?: true

Size: 1.58 KB

Versions: 132

Compression:

Stored size: 1.58 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 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

132 entries across 132 versions & 1 rubygems

Version Path
fastlane-2.94.0.beta.20180425050017 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.1 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.94.0.beta.20180424050050 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0.beta.20180423050019 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0.beta.20180422050034 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0.beta.20180421050012 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0.beta.20180420050021 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0.beta.20180419050008 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0.beta.20180418050020 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.92.1 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.93.0.beta.20180417050013 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.92.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.92.0.beta.20180416050023 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.92.0.beta.20180415050019 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.92.0.beta.20180414050023 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.91.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.91.0.beta.20180413050017 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.90.0 fastlane/lib/fastlane/actions/xctool.rb
fastlane-2.90.0.beta.20180412050111 fastlane/lib/fastlane/actions/xctool.rb