Class: Omnitest::CLI::OmnitestCLI
Overview
rubocop:disable ClassLength
Constant Summary
Constants inherited
from BaseCLI
BaseCLI::MAX_CONCURRENCY
Class Method Summary
collapse
Instance Method Summary
collapse
#clone, #workflow
Methods inherited from BaseCLI
#initialize
Class Method Details
.filter_options ⇒ Object
168
169
170
171
172
173
174
175
176
177
178
|
# File 'lib/omnitest/cli.rb', line 168
def self.filter_options
method_option :failed,
type: :boolean,
desc: 'Only list tests that failed / passed'
method_option :skipped,
type: :boolean,
desc: 'Only list tests that were skipped / executed'
method_option :samples,
type: :boolean,
desc: 'Only list tests that have sample code / do not have sample code'
end
|
Instance Method Details
#list(*args) ⇒ Object
221
222
223
224
|
# File 'lib/omnitest/cli.rb', line 221
def list(*args)
update_config!
perform('list', 'list', args, options)
end
|
#show(*args) ⇒ Object
249
250
251
252
|
# File 'lib/omnitest/cli.rb', line 249
def show(*args)
update_config!
perform('show', 'show', args, options)
end
|
#test(*args) ⇒ Object
284
285
286
287
288
|
# File 'lib/omnitest/cli.rb', line 284
def test(*args)
update_config!
action_options = options.dup
perform('test', 'test', args, action_options)
end
|
#version ⇒ Object
291
292
293
|
# File 'lib/omnitest/cli.rb', line 291
def version
puts "Omnitest version #{Omnitest::VERSION}"
end
|