Class: Avm::Tools::Runner::LocalProject::Test

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Includes:
EacCli::DefaultRunner
Defined in:
lib/avm/tools/runner/local_project/test.rb

Instance Method Summary collapse

Instance Method Details

#runObject



17
18
19
20
21
22
23
24
25
# File 'lib/avm/tools/runner/local_project/test.rb', line 17

def run
  context(: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



27
28
29
# File 'lib/avm/tools/runner/local_project/test.rb', line 27

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