Sha256: 8aa9cbedaa0a39c7c6d1b1019d2f20ffb71d4162fcadf4a7de62dbff77bd2608

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

=begin
  Esta clase se encarga de ejecutar las pruebas unitarias recibidas del Manager
=end

module Liri
  class Agent
    class Runner
      def initialize(unit_test_class, source_code_folder_path)
        @unit_test = Object.const_get(unit_test_class).new(source_code_folder_path)
      end

      def run_tests(tests)
        result_hash = @unit_test.run_tests(tests.values)
        result_hash[:test_keys] = tests.keys
        result_hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
liri-0.1.0 lib/agent/runner.rb