Sha256: 180a0e767deefd2538165894eb378720c34da7345947016c1e5bad5952ad5d1e

Contents?: true

Size: 820 Bytes

Versions: 1

Compression:

Stored size: 820 Bytes

Contents

require_relative "base"
require_relative "../../test_optimisation/skippable_percentage/calculator"

module Datadog
  module CI
    module CLI
      module Command
        class SkippableTestsPercentage < Base
          private

          def build_action
            ::Datadog::CI::TestOptimisation::SkippablePercentage::Calculator.new(
              rspec_cli_options: (options[:"rspec-opts"] || "").split,
              verbose: !options[:verbose].nil?,
              spec_path: options[:"spec-path"] || "spec"
            )
          end

          def command_options(opts)
            opts.on("--rspec-opts=[OPTIONS]", "Command line options to pass to RSpec")
            opts.on("--spec-path=[SPEC_PATH]", "Relative path to the spec directory, example: spec")
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog-ci-1.8.0 lib/datadog/ci/cli/command/skippable_tests_percentage.rb