Sha256: 4ff34def27bff4a7ef2648a38e44b83edb5f200696bc24919d68f23c1edf443e

Contents?: true

Size: 675 Bytes

Versions: 9

Compression:

Stored size: 675 Bytes

Contents

# frozen_string_literal: true

require 'avm/core_ext'

module Avm
  module Tools
    class Runner
      class AppSrc
        class Test
          runner_with :help do
            desc 'Test local project.'
          end

          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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avm-tools-0.103.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.102.2 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.102.1 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.102.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.101.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.100.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.99.1 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.99.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.98.0 lib/avm/tools/runner/app_src/test.rb