Class: Minitest::Server
- Inherits:
-
Object
- Object
- Minitest::Server
- Defined in:
- lib/minitest/server.rb
Overview
:stopdoc:
Constant Summary collapse
- TOPDIR =
extracted version = “1.0.10”
Dir.pwd + "/"
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client) ⇒ Server
constructor
A new instance of Server.
- #quit ⇒ Object
- #report ⇒ Object
- #result(file, klass, method, fails, assertions, time) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(client) ⇒ Server
Returns a new instance of Server.
26 27 28 |
# File 'lib/minitest/server.rb', line 26 def initialize client self.client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
24 25 26 |
# File 'lib/minitest/server.rb', line 24 def client @client end |
Class Method Details
.path(pid = $$) ⇒ Object
12 13 14 |
# File 'lib/minitest/server.rb', line 12 def self.path pid = $$ "drbunix:#{Dir.tmpdir}/minitest.#{pid}" end |
.run(client) ⇒ Object
16 17 18 |
# File 'lib/minitest/server.rb', line 16 def self.run client DRb.start_service path, new(client) end |
.stop ⇒ Object
20 21 22 |
# File 'lib/minitest/server.rb', line 20 def self.stop DRb.stop_service end |
Instance Method Details
#quit ⇒ Object
30 31 32 |
# File 'lib/minitest/server.rb', line 30 def quit self.class.stop end |
#report ⇒ Object
44 45 46 |
# File 'lib/minitest/server.rb', line 44 def report # do nothing end |
#result(file, klass, method, fails, assertions, time) ⇒ Object
38 39 40 41 42 |
# 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 ⇒ Object
34 35 36 |
# File 'lib/minitest/server.rb', line 34 def start client.minitest_start end |