Sha256: 631c36a504b819151bea95b1d68cb9e5271eff91afe75f04d4812b2312b3d91c

Contents?: true

Size: 681 Bytes

Versions: 10

Compression:

Stored size: 681 Bytes

Contents

# frozen_string_literal: true

require 'avm/tools/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

10 entries across 10 versions & 1 rubygems

Version Path
avm-tools-0.111.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.110.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.109.1 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.109.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.108.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.107.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.106.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.105.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.104.0 lib/avm/tools/runner/app_src/test.rb
avm-tools-0.103.1 lib/avm/tools/runner/app_src/test.rb