Class: Tryouts::TestExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/tryouts/test_executor.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, testrun, options, output_manager, translator, global_tally) ⇒ TestExecutor

Returns a new instance of TestExecutor.



7
8
9
10
11
12
13
14
# File 'lib/tryouts/test_executor.rb', line 7

def initialize(file, testrun, options, output_manager, translator, global_tally)
  @file           = file
  @testrun        = testrun
  @options        = options
  @output_manager = output_manager
  @translator     = translator
  @global_tally   = global_tally
end

Instance Method Details

#executeObject



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/tryouts/test_executor.rb', line 16

def execute
  @file_start = Time.now

  case @options[:framework]
  when :direct
    execute_direct_mode
  when :rspec
    execute_rspec_mode
  when :minitest
    execute_minitest_mode
  end
end