123456789_123456789_123456789_123456789_123456789_

Class: Minitest::Server

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/minitest/server.rb

Constant Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(client) ⇒ Server

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 26

def initialize client
  self.client = client
end

Class Method Details

.path(pid = $$)

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 12

def self.path pid = $$
  "drbunix:#{Dir.tmpdir}/minitest.#{pid}"
end

.run(client)

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 16

def self.run client
  DRb.start_service path, new(client)
end

.stop

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 20

def self.stop
  DRb.stop_service
end

Instance Attribute Details

#client (rw)

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 24

attr_accessor :client

Instance Method Details

#quit

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 30

def quit
  self.class.stop
end

#report

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 44

def report
  # do nothing
end

#result(file, klass, method, fails, assertions, time)

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 38

def result file, klass, method, fails, assertions, time
  file = file.sub(/^#{TOPDIR}/, "")

  client.minitest_result file, klass, method, fails, assertions, time
end

#start

[ GitHub ]

  
# File 'lib/minitest/server.rb', line 34

def start
  client.minitest_start
end