class Minitest::Server

Constants

TOPDIR
VERSION

Attributes

client[RW]

Public Class Methods

new(client) click to toggle source
# File lib/minitest/server.rb, line 24
def initialize client
  self.client = client
end
path(pid = $$) click to toggle source
# File lib/minitest/server.rb, line 10
def self.path pid = $$
  "drbunix:#{Dir.tmpdir}/minitest.#{pid}"
end
run(client) click to toggle source
# File lib/minitest/server.rb, line 14
def self.run client
  DRb.start_service path, new(client)
end
stop() click to toggle source
# File lib/minitest/server.rb, line 18
def self.stop
  DRb.stop_service
end

Public Instance Methods

quit() click to toggle source
# File lib/minitest/server.rb, line 28
def quit
  self.class.stop
end
report() click to toggle source
# File lib/minitest/server.rb, line 42
def report
  # do nothing
end
result(file, klass, method, fails, assertions, time) click to toggle source
# File lib/minitest/server.rb, line 36
def result file, klass, method, fails, assertions, time
  file = file.sub(/^#{TOPDIR}/, "")

  client.minitest_result file, klass, method, fails, assertions, time
end
start() click to toggle source
# File lib/minitest/server.rb, line 32
def start
  client.minitest_start
end