Sha256: 98e5ab6211991f7ea229977fd2a59ed1a4700faddf508272cd38dbaac901d204

Contents?: true

Size: 878 Bytes

Versions: 32

Compression:

Stored size: 878 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/console/docopt_runner'
require 'eac_ruby_utils/core_ext'

module Avm
  module Tools
    class Runner < ::EacRubyUtils::Console::DocoptRunner
      class LocalProject < ::EacRubyUtils::Console::DocoptRunner
        class Test < ::EacRubyUtils::Console::DocoptRunner
          include ::EacCli::DefaultRunner

          runner_definition do
            desc 'Test local project.'
          end

          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

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
avm-tools-0.86.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.85.1 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.85.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.84.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.83.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.82.1 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.82.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.81.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.80.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.79.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.78.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.77.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.76.1 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.76.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.75.1 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.75.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.74.1 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.74.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.73.0 lib/avm/tools/runner/local_project/test.rb
avm-tools-0.72.0 lib/avm/tools/runner/local_project/test.rb