Sha256: 29ca9b7d582e6272a9d1a55f9e8d3b1fa198b080a5e4344a673f1255e35b04ea

Contents?: true

Size: 1.65 KB

Versions: 132

Compression:

Stored size: 1.65 KB

Contents

module Fastlane
  module Actions
    class XcovAction < Action
      def self.run(values)
        Actions.verify_gem!('xcov')
        require 'xcov'

        Xcov::Manager.new(values).run
      end

      def self.description
        "Nice code coverage reports without hassle"
      end

      def self.details
        [
          "Create nice code coverage reports and post coverage summaries on Slack *(xcov gem is required)*.",
          "More information: https://github.com/nakiostudio/xcov"
        ].join("\n")
      end

      def self.author
        "nakiostudio"
      end

      def self.available_options
        # We call Gem::Specification.find_by_name in many more places than this, but for right now
        # this is the only place we're having trouble. If there are other reports about RubyGems
        # 2.6.2 causing problems, we may need to move this code and require it someplace better,
        # like fastlane_core
        require 'fastlane/core_ext/bundler_monkey_patch'

        begin
          Gem::Specification.find_by_name('xcov')
        rescue Gem::LoadError
          # Catched missing gem exception and returned empty array
          # to avoid unused_options_spec failure
          return []
        end

        require 'xcov'
        Xcov::Options.available_options
      end

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

      def self.example_code
        [
          'xcov(
            workspace: "YourWorkspace.xcworkspace",
            scheme: "YourScheme",
            output_directory: "xcov_output"
          )'
        ]
      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/xcov.rb
fastlane-2.93.1 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.94.0.beta.20180424050050 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0.beta.20180423050019 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0.beta.20180422050034 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0.beta.20180421050012 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0.beta.20180420050021 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0.beta.20180419050008 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0.beta.20180418050020 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.92.1 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.93.0.beta.20180417050013 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.92.0 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.92.0.beta.20180416050023 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.92.0.beta.20180415050019 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.92.0.beta.20180414050023 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.91.0 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.91.0.beta.20180413050017 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.90.0 fastlane/lib/fastlane/actions/xcov.rb
fastlane-2.90.0.beta.20180412050111 fastlane/lib/fastlane/actions/xcov.rb