Module: Datadog::CI::CLI
- Defined in:
- lib/datadog/ci/cli/cli.rb,
lib/datadog/ci/cli/command/base.rb,
lib/datadog/ci/cli/command/skippable_tests_percentage.rb,
lib/datadog/ci/cli/command/skippable_tests_percentage_estimate.rb
Defined Under Namespace
Modules: Command
Class Method Summary collapse
Class Method Details
.exec(action) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/datadog/ci/cli/cli.rb', line 10 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 |