Sha256: ef75dbeccc6e01d0d2acae195e9c8208cdc6d32618f839b0f0369dab174c5ad2

Contents?: true

Size: 854 Bytes

Versions: 2

Compression:

Stored size: 854 Bytes

Contents

require "datadog"
require "datadog/ci"

require_relative "command/skippable_tests_percentage"
require_relative "command/skippable_tests_percentage_estimate"

module Datadog
  module CI
    module CLI
      def self.exec(action)
        case action
        when "skipped-tests", "skippable-tests"
          Command::SkippableTestsPercentage.new.exec
        when "skipped-tests-estimate", "skippable-tests-estimate"
          Command::SkippableTestsPercentageEstimate.new.exec
        else
          puts("Usage: bundle exec ddcirb [command] [options]. Available commands:")
          puts("  skippable-tests - calculates the exact percentage of skipped tests and prints it to stdout or file")
          puts("  skippable-tests-estimate - estimates the percentage of skipped tests and prints it to stdout or file")
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datadog-ci-1.8.1 lib/datadog/ci/cli/cli.rb
datadog-ci-1.8.0 lib/datadog/ci/cli/cli.rb