Module: Datadog::CI::CLI
- Defined in:
- lib/datadog/ci/cli/cli.rb,
lib/datadog/ci/cli/command/base.rb,
lib/datadog/ci/cli/command/exec.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, args = []) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/datadog/ci/cli/cli.rb', line 11 def self.exec(action, args = []) case action when "exec" Command::Exec.new(args).exec 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") puts(" exec YOUR_TEST_COMMAND - automatically instruments your test command with Datadog and executes it") end end |