Module: Avm::Git::Issue::Complete::Test
- Defined in:
- lib/avm/git/issue/complete/test.rb
Instance Method Summary collapse
Instance Method Details
#test_result ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/avm/git/issue/complete/test.rb', line 12 def test_result test_command = configuration.if_present(&:any_test_command) return ::Avm::Result.success('unconfigured') if test_command.blank? infom "Running test command \"#{test_command}\"..." result = test_command.execute test_result_log(result) if result.fetch(:exit_code).zero? ::Avm::Result.success('yes') else ::Avm::Result.error('no') end end |