Sha256: 3ee1638f66388f9bfadd70244c5c15b88bfd9a65c8a5627ea679328d1b55a168
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
require "drb" require "tmpdir" require "minitest" module Minitest class Server TOPDIR = Dir.pwd + "/" def self.path pid = $$ "drbunix:#{Dir.tmpdir}/minitest.#{pid}" end def self.run client DRb.start_service path, new(client) end def self.stop DRb.stop_service end attr_accessor :client def initialize client self.client = client end def quit self.class.stop end def start client.failures.clear # TODO: push down to subclass end def result file, klass, method, fails, assertions, time file = file.sub(/^#{TOPDIR}/, "") client.result file, klass, method, fails, assertions, time end def report # do nothing end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minitest-bisect-1.1.0 | lib/minitest/server.rb |
minitest-bisect-1.0.0 | lib/minitest/server.rb |