Class: Omnitest::Command::List

Inherits:
Base
  • Object
show all
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

reporter

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Omnitest::Command::Base

Instance Method Details

#callObject



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(options[:format], shell)
  tests = parse_subcommand(args.shift, args.shift)

  table = [header_row]
  table += tests.map do | scenario |
    row(scenario)
  end
  print_table(table)
end