Class: Avm::Tools::Runner::AppSrc::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/tools/runner/app_src/test.rb

Instance Method Summary collapse

Instance Method Details

#runObject



14
15
16
17
18
19
20
21
22
# File 'lib/avm/tools/runner/app_src/test.rb', line 14

def run
  runner_context.call(:instance_banner)
  infov 'Test command', test_command
  if test_command.present?
    test_command.system!
  else
    fatal_error 'No test command found'
  end
end

#test_commandObject



24
25
26
# File 'lib/avm/tools/runner/app_src/test.rb', line 24

def test_command
  runner_context.call(:instance).configuration.if_present(&:any_test_command)
end