Class: Omnitest::Command::List
- Includes:
- Reporters
- Defined in:
- lib/omnitest/command/list.rb
Constant Summary
Constants included from Reporters
Reporters::ASSETS_DIR, Reporters::GENERATORS_DIR, Reporters::RESOURCES_DIR
Instance Method Summary collapse
Methods included from Reporters
Methods inherited from Base
Constructor Details
This class inherits a constructor from Omnitest::Command::Base
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/omnitest/command/list.rb', line 7 def call setup @reporter = Omnitest::Reporters.reporter([:format], shell) tests = parse_subcommand(args.shift, args.shift) table = [header_row] table += tests.map do | scenario | row(scenario) end print_table(table) end |