jstorimer-deep-test 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/.gitignore +1 -0
  2. data/README.rdoc +41 -70
  3. data/Rakefile +47 -119
  4. data/TODO +2 -2
  5. data/VERSION +1 -1
  6. data/infrastructure/dynamic_teardown.rb +22 -0
  7. data/{test → infrastructure}/fake_deadlock_error.rb +0 -0
  8. data/infrastructure/load.rb +11 -0
  9. data/infrastructure/test_central_command.rb +15 -0
  10. data/infrastructure/test_exception.rb +7 -0
  11. data/{test → infrastructure}/test_factory.rb +0 -0
  12. data/infrastructure/test_logger.rb +11 -0
  13. data/infrastructure/test_operator.rb +15 -0
  14. data/infrastructure/test_result.rb +15 -0
  15. data/infrastructure/thread_agent.rb +21 -0
  16. data/infrastructure/timewarp/Rakefile +14 -0
  17. data/infrastructure/timewarp/lib/timewarp.rb +21 -0
  18. data/infrastructure/timewarp/test/timewarp_test.rb +45 -0
  19. data/lib/deep_test.rb +28 -40
  20. data/lib/deep_test/agent.rb +108 -0
  21. data/lib/deep_test/central_command.rb +165 -0
  22. data/lib/deep_test/cpu_info.rb +22 -0
  23. data/lib/deep_test/database/mysql_setup_listener.rb +11 -12
  24. data/lib/deep_test/database/setup_listener.rb +23 -23
  25. data/lib/deep_test/demon.rb +25 -0
  26. data/lib/deep_test/distributed/beachhead.rb +104 -0
  27. data/lib/deep_test/distributed/dispatch_controller.rb +17 -10
  28. data/lib/deep_test/distributed/establish_beachhead.rb +19 -0
  29. data/lib/deep_test/distributed/landing_fleet.rb +30 -0
  30. data/lib/deep_test/distributed/landing_ship.rb +60 -0
  31. data/lib/deep_test/distributed/remote_deployment.rb +56 -0
  32. data/lib/deep_test/distributed/rsync.rb +25 -12
  33. data/lib/deep_test/distributed/shell_environment.rb +50 -0
  34. data/lib/deep_test/distributed/ssh_client_connection_info.rb +14 -0
  35. data/lib/deep_test/failure_message.rb +19 -0
  36. data/lib/deep_test/lib_root.rb +4 -0
  37. data/lib/deep_test/listener_list.rb +1 -1
  38. data/lib/deep_test/local_deployment.rb +46 -0
  39. data/lib/deep_test/logger.rb +17 -2
  40. data/lib/deep_test/main.rb +41 -0
  41. data/lib/deep_test/marshallable_exception_wrapper.rb +4 -4
  42. data/lib/deep_test/metrics/data.rb +34 -0
  43. data/lib/deep_test/metrics/measurement.rb +39 -0
  44. data/lib/deep_test/{null_worker_listener.rb → null_listener.rb} +14 -14
  45. data/lib/deep_test/options.rb +41 -56
  46. data/lib/deep_test/proxy_io.rb +77 -0
  47. data/lib/deep_test/rake_tasks.rb +3 -1
  48. data/lib/deep_test/result_reader.rb +10 -6
  49. data/lib/deep_test/rspec_detector.rb +1 -1
  50. data/lib/deep_test/spec.rb +5 -1
  51. data/lib/deep_test/spec/extensions/example_methods.rb +7 -1
  52. data/lib/deep_test/spec/extensions/spec_task.rb +3 -2
  53. data/lib/deep_test/spec/runner.rb +32 -17
  54. data/lib/deep_test/spec/work_result.rb +2 -0
  55. data/lib/deep_test/test/run_test_suite.rb +5 -0
  56. data/lib/deep_test/test/runner.rb +2 -2
  57. data/lib/deep_test/test/supervised_test_suite.rb +9 -10
  58. data/lib/deep_test/test/work_result.rb +1 -0
  59. data/lib/deep_test/test_task.rb +1 -1
  60. data/lib/deep_test/ui/console.rb +9 -11
  61. data/lib/deep_test/warlock.rb +37 -25
  62. data/lib/telegraph.rb +29 -0
  63. data/lib/telegraph/ack_sequence.rb +14 -0
  64. data/lib/telegraph/logging.rb +20 -0
  65. data/lib/telegraph/message.rb +39 -0
  66. data/lib/telegraph/operator.rb +47 -0
  67. data/lib/telegraph/switchboard.rb +57 -0
  68. data/lib/telegraph/wire.rb +73 -0
  69. data/negative_acceptance_tests/dying_spec.rb +13 -0
  70. data/negative_acceptance_tests/dying_test.rb +13 -0
  71. data/negative_acceptance_tests/failing_spec.rb +9 -0
  72. data/{test/failing.rb → negative_acceptance_tests/failing_test.rb} +3 -1
  73. data/negative_acceptance_tests/kill_agent_one_on_start_work.rb +16 -0
  74. data/negative_acceptance_tests/passing_spec.rb +10 -0
  75. data/negative_acceptance_tests/passing_test.rb +12 -0
  76. data/negative_acceptance_tests/tasks.rake +87 -0
  77. data/negative_acceptance_tests/tests.rb +60 -0
  78. data/sample_rails_project/deep_test.rb +4 -0
  79. data/sample_rails_project/lib/{foreign_host_worker_simulation_listener.rb → foreign_host_agent_simulation_listener.rb} +6 -4
  80. data/sample_rails_project/lib/tasks/deep_test.rake +13 -4
  81. data/spec/deep_test/options_spec.rb +80 -59
  82. data/spec/deep_test/spec/extensions/example_methods_spec.rb +5 -4
  83. data/spec/deep_test/spec/extensions/spec_task_spec.rb +4 -6
  84. data/spec/deep_test/spec/runner_spec.rb +59 -32
  85. data/spec/spec_helper.rb +14 -6
  86. data/test/deep_test/agent_test.rb +175 -0
  87. data/test/deep_test/central_command_test.rb +147 -0
  88. data/test/deep_test/cpu_info_test.rb +33 -0
  89. data/test/deep_test/database/mysql_setup_listener_test.rb +13 -9
  90. data/test/deep_test/demon_test.rb +23 -0
  91. data/test/deep_test/distributed/beachhead_test.rb +67 -0
  92. data/test/deep_test/distributed/dispatch_controller_test.rb +130 -177
  93. data/test/deep_test/distributed/filename_resolver_test.rb +38 -34
  94. data/test/deep_test/distributed/landing_fleet_test.rb +55 -0
  95. data/test/deep_test/distributed/landing_ship_test.rb +48 -0
  96. data/test/deep_test/distributed/remote_deployment_test.rb +134 -0
  97. data/test/deep_test/distributed/rsync_test.rb +42 -62
  98. data/test/deep_test/distributed/shell_environment_fixtures/set_bar_to_foo +1 -0
  99. data/test/deep_test/distributed/shell_environment_fixtures/set_foo_to_bar +1 -0
  100. data/test/deep_test/distributed/shell_environment_fixtures/set_foo_to_baz +1 -0
  101. data/test/deep_test/distributed/shell_environment_test.rb +108 -0
  102. data/test/deep_test/distributed/ssh_client_connection_info_test.rb +34 -0
  103. data/test/deep_test/listener_list_test.rb +17 -15
  104. data/test/deep_test/local_deployment_test.rb +19 -0
  105. data/test/deep_test/logger_test.rb +34 -7
  106. data/test/deep_test/main_test.rb +12 -0
  107. data/test/deep_test/marshallable_exception_wrapper_test.rb +31 -29
  108. data/test/deep_test/metrics/data_test.rb +22 -0
  109. data/test/deep_test/metrics/measurement_test.rb +18 -0
  110. data/test/deep_test/proxy_io_test.rb +104 -0
  111. data/test/deep_test/result_reader_test.rb +95 -95
  112. data/test/deep_test/test/extensions/error_test.rb +38 -36
  113. data/test/deep_test/test/runner_test.rb +7 -3
  114. data/test/deep_test/test/supervised_test_suite_test.rb +89 -61
  115. data/test/deep_test/test/work_result_test.rb +80 -76
  116. data/test/deep_test/test/work_unit_test.rb +53 -51
  117. data/test/deep_test/test_task_test.rb +10 -38
  118. data/test/deep_test/ui/console_test.rb +8 -4
  119. data/test/deep_test/warlock_test.rb +33 -31
  120. data/test/test_helper.rb +20 -5
  121. data/test/test_task_test.rb +60 -57
  122. metadata +94 -84
  123. data/bin/deep_test +0 -15
  124. data/jstorimer-deep-test-0.1.0.gem +0 -0
  125. data/jstorimer-deep-test.gemspec +0 -1425
  126. data/lib/deep_test/distributed/drb_client_connection_info.rb +0 -15
  127. data/lib/deep_test/distributed/master_test_server.rb +0 -52
  128. data/lib/deep_test/distributed/multi_test_server_proxy.rb +0 -44
  129. data/lib/deep_test/distributed/null_work_unit.rb +0 -12
  130. data/lib/deep_test/distributed/remote_worker_client.rb +0 -54
  131. data/lib/deep_test/distributed/remote_worker_server.rb +0 -82
  132. data/lib/deep_test/distributed/show_status.rhtml +0 -41
  133. data/lib/deep_test/distributed/test_server.rb +0 -78
  134. data/lib/deep_test/distributed/test_server_status.rb +0 -9
  135. data/lib/deep_test/distributed/test_server_workers.rb +0 -24
  136. data/lib/deep_test/distributed/throughput_runner.rb +0 -42
  137. data/lib/deep_test/distributed/throughput_statistics.rb +0 -26
  138. data/lib/deep_test/distributed/throughput_worker_client.rb +0 -19
  139. data/lib/deep_test/extensions/drb_extension.rb +0 -34
  140. data/lib/deep_test/local_workers.rb +0 -55
  141. data/lib/deep_test/metrics/gatherer.rb +0 -67
  142. data/lib/deep_test/metrics/queue_lock_wait_time_measurement.rb +0 -133
  143. data/lib/deep_test/option.rb +0 -60
  144. data/lib/deep_test/process_orchestrator.rb +0 -49
  145. data/lib/deep_test/server.rb +0 -75
  146. data/lib/deep_test/spec/extensions/reporter.rb +0 -29
  147. data/lib/deep_test/worker.rb +0 -57
  148. data/script/internal/run_test_suite.rb +0 -7
  149. data/script/public/master_test_server.rb +0 -24
  150. data/script/public/test_server.rb +0 -18
  151. data/script/public/test_throughput.rb +0 -29
  152. data/spec/deep_test/option_spec.rb +0 -33
  153. data/spec/thread_worker.rb +0 -25
  154. data/test/deep_test/distributed/drb_client_connection_info_test.rb +0 -42
  155. data/test/deep_test/distributed/master_test_server_test.rb +0 -32
  156. data/test/deep_test/distributed/multi_test_server_proxy_test.rb +0 -96
  157. data/test/deep_test/distributed/remote_worker_client_test.rb +0 -180
  158. data/test/deep_test/distributed/remote_worker_server_test.rb +0 -99
  159. data/test/deep_test/distributed/test_server_test.rb +0 -94
  160. data/test/deep_test/distributed/test_server_workers_test.rb +0 -26
  161. data/test/deep_test/distributed/throughput_runner_test.rb +0 -68
  162. data/test/deep_test/distributed/throughput_worker_client_test.rb +0 -28
  163. data/test/deep_test/local_workers_test.rb +0 -22
  164. data/test/deep_test/metrics/gatherer_test.rb +0 -66
  165. data/test/deep_test/process_orchestrator_test.rb +0 -11
  166. data/test/deep_test/server_test.rb +0 -58
  167. data/test/deep_test/worker_test.rb +0 -94
  168. data/test/failing.rake +0 -11
  169. data/test/simple_test_blackboard.rb +0 -45
  170. data/test/simple_test_blackboard_test.rb +0 -33
@@ -1,43 +1,15 @@
1
1
  require File.dirname(__FILE__) + '/../test_helper'
2
2
 
3
- unit_tests do
4
- test "should support setting timeout_in_seconds" do
5
- t = DeepTest::TestTask.new :deep_test do |t|
6
- t.stubs(:desc)
7
- t.stubs(:task)
8
- t.timeout_in_seconds = 20
3
+ module DeepTest
4
+ unit_tests do
5
+ test "should support listener" do
6
+ t = TestTask.new :deep_test do |t|
7
+ t.stubs(:desc)
8
+ t.stubs(:task)
9
+ t.listener = "A"
10
+ end
11
+ assert_equal "A", t.instance_variable_get(:@options).listener
12
+ assert_equal "A", t.listener
9
13
  end
10
- assert_equal 20, t.instance_variable_get(:@options).timeout_in_seconds
11
- assert_equal 20, t.timeout_in_seconds
12
- end
13
-
14
- test "should support setting distributed_server" do
15
- t = DeepTest::TestTask.new :deep_test do |t|
16
- t.stubs(:desc)
17
- t.stubs(:task)
18
- t.distributed_server = "uri"
19
- end
20
- assert_equal "uri", t.instance_variable_get(:@options).distributed_server
21
- assert_equal "uri", t.distributed_server
22
- end
23
-
24
- test "should support worker_listener" do
25
- t = DeepTest::TestTask.new :deep_test do |t|
26
- t.stubs(:desc)
27
- t.stubs(:task)
28
- t.worker_listener = "A"
29
- end
30
- assert_equal "A", t.instance_variable_get(:@options).worker_listener
31
- assert_equal "A", t.worker_listener
32
- end
33
-
34
- test "should support server_port" do
35
- t = DeepTest::TestTask.new :deep_test do |t|
36
- t.stubs(:desc)
37
- t.stubs(:task)
38
- t.server_port = 10
39
- end
40
- assert_equal 10, t.instance_variable_get(:@options).server_port
41
- assert_equal 10, t.server_port
42
14
  end
43
15
  end
@@ -1,9 +1,13 @@
1
1
  require File.dirname(__FILE__) + "/../../test_helper"
2
2
 
3
- unit_tests do
4
- test "dispatch_finished doesn't fail if spinner is nil" do
5
- assert_nothing_raised do
6
- DeepTest::UI::Console.new(:options).dispatch_finished(:method_name)
3
+ module DeepTest
4
+ module UI
5
+ unit_tests do
6
+ test "dispatch_finished doesn't fail if spinner is nil" do
7
+ assert_nothing_raised do
8
+ Console.new(:options).dispatch_finished(:method_name)
9
+ end
10
+ end
7
11
  end
8
12
  end
9
13
  end
@@ -1,38 +1,40 @@
1
1
  require File.dirname(__FILE__) + '/../test_helper'
2
2
 
3
- unit_tests do
4
- test "running? is true if sending kill(0, pid) does not fail" do
5
- warlock = DeepTest::Warlock.new
6
- Process.expects(:kill).with(0, :pid)
7
- assert_equal true, warlock.running?(:pid)
8
- end
9
-
10
- test "running? is false if Process.kill(0, pid) raises Errno::ESRCH" do
11
- warlock = DeepTest::Warlock.new
12
- Process.stubs(:kill).raises(Errno::ESRCH)
13
- assert_equal false, warlock.running?(:pid)
14
- end
15
-
16
- test "running? is true if Process.kill raises Exception" do
17
- warlock = DeepTest::Warlock.new
18
- Process.stubs(:kill).raises(Exception)
19
- assert_equal true, warlock.running?(:pid)
20
- end
3
+ module DeepTest
4
+ unit_tests do
5
+ test "running? is true if sending kill(0, pid) does not fail" do
6
+ warlock = Warlock.new Options.new({})
7
+ Process.expects(:kill).with(0, :pid)
8
+ assert_equal true, warlock.running?(:pid)
9
+ end
10
+
11
+ test "running? is false if Process.kill(0, pid) raises Errno::ESRCH" do
12
+ warlock = Warlock.new Options.new({})
13
+ Process.stubs(:kill).raises(Errno::ESRCH)
14
+ assert_equal false, warlock.running?(:pid)
15
+ end
16
+
17
+ test "running? is true if Process.kill raises Exception" do
18
+ warlock = Warlock.new Options.new({})
19
+ Process.stubs(:kill).raises(Exception)
20
+ assert_equal true, warlock.running?(:pid)
21
+ end
21
22
 
22
- test "demon_count is 0 initially" do
23
- assert_equal 0, DeepTest::Warlock.new.demon_count
24
- end
23
+ test "demon_count is 0 initially" do
24
+ assert_equal 0, Warlock.new(Options.new({})).demon_count
25
+ end
25
26
 
26
- test "add_demon increases demon_count by 1" do
27
- warlock = DeepTest::Warlock.new
28
- warlock.send(:add_demon, "name", 1)
29
- assert_equal 1, warlock.demon_count
30
- end
27
+ test "add_demon increases demon_count by 1" do
28
+ warlock = Warlock.new Options.new({})
29
+ warlock.send(:add_demon, "name", 1)
30
+ assert_equal 1, warlock.demon_count
31
+ end
31
32
 
32
- test "remove_demon increases demon_count by 1" do
33
- warlock = DeepTest::Warlock.new
34
- warlock.send(:add_demon, "name", 1)
35
- warlock.send(:remove_demon, "name", 1)
36
- assert_equal 0, warlock.demon_count
33
+ test "remove_demon increases demon_count by 1" do
34
+ warlock = Warlock.new Options.new({})
35
+ warlock.send(:add_demon, "name", 1)
36
+ warlock.send(:remove_demon, "name", 1)
37
+ assert_equal 0, warlock.demon_count
38
+ end
37
39
  end
38
40
  end
data/test/test_helper.rb CHANGED
@@ -2,14 +2,29 @@ require 'rubygems'
2
2
  require 'test/unit'
3
3
  require 'dust'
4
4
  require 'mocha'
5
+ require 'set'
6
+
5
7
  $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
6
8
  require "deep_test"
7
- require 'set'
8
9
 
9
- require File.dirname(__FILE__) + "/fake_deadlock_error"
10
- require File.dirname(__FILE__) + "/simple_test_blackboard"
11
- require File.dirname(__FILE__) + "/test_factory"
12
- require File.dirname(__FILE__) + "/../spec/thread_worker"
10
+ require File.dirname(__FILE__) + "/../infrastructure/load"
13
11
 
14
12
  class SomeCustomException < RuntimeError
15
13
  end
14
+
15
+ class Test::Unit::TestCase
16
+ def setup
17
+ @old_logger = DeepTest.logger
18
+ DeepTest.logger = TestLogger.new
19
+ DynamicTeardown.setup
20
+ end
21
+
22
+ def teardown
23
+ DeepTest.logger = @old_logger if @old_logger
24
+ DynamicTeardown.teardown
25
+ end
26
+
27
+ def at(time, &block)
28
+ Timewarp.freeze(time, &block)
29
+ end
30
+ end
@@ -1,72 +1,75 @@
1
1
  require File.dirname(__FILE__) + "/test_helper"
2
2
 
3
- unit_tests do
4
- test "defines a rake task with the name passed to the constructor" do
5
- DeepTest::TestTask.any_instance.stubs(:desc)
6
- DeepTest::TestTask.any_instance.expects(:task).with(:my_task_name)
7
- DeepTest::TestTask.new :my_task_name do
3
+ module DeepTest
4
+ unit_tests do
5
+ test "defines a rake task with the name passed to the constructor" do
6
+ TestTask.any_instance.stubs(:desc)
7
+ TestTask.any_instance.expects(:task).with(:my_task_name)
8
+ TestTask.new :my_task_name do
9
+ end
8
10
  end
9
- end
10
-
11
- test "setting pattern" do
12
- pattern = "test/**/x*_test.rb"
13
- task = DeepTest::TestTask.new do |t|
14
- t.stubs(:define)
15
- t.pattern = pattern
11
+
12
+ test "setting pattern" do
13
+ pattern = "test/**/x*_test.rb"
14
+ task = TestTask.new do |t|
15
+ t.stubs(:define)
16
+ t.pattern = pattern
17
+ end
18
+ assert_equal pattern, task.pattern[-pattern.size..-1]
16
19
  end
17
- assert_equal pattern, task.pattern[-pattern.size..-1]
18
- end
19
-
20
- test "default pattern is test/**/*_test.rb" do
21
- task = DeepTest::TestTask.new do |t|
22
- t.stubs(:define)
20
+
21
+ test "default pattern is test/**/*_test.rb" do
22
+ task = TestTask.new do |t|
23
+ t.stubs(:define)
24
+ end
25
+ assert_equal "test/**/*_test.rb", task.pattern[-"test/**/*_test.rb".size..-1]
23
26
  end
24
- assert_equal "test/**/*_test.rb", task.pattern[-"test/**/*_test.rb".size..-1]
25
- end
26
-
27
- test "default libs is ['lib']" do
28
- task = DeepTest::TestTask.new do |t|
29
- t.stubs(:define)
27
+
28
+ test "default libs is ['lib']" do
29
+ task = TestTask.new do |t|
30
+ t.stubs(:define)
31
+ end
32
+ assert_equal ["lib"], task.libs
30
33
  end
31
- assert_equal ["lib"], task.libs
32
- end
33
34
 
34
- test "can add to libs" do
35
- task = DeepTest::TestTask.new do |t|
36
- t.libs << "test"
37
- t.stubs(:define)
35
+ test "can add to libs" do
36
+ task = TestTask.new do |t|
37
+ t.libs << "test"
38
+ t.stubs(:define)
39
+ end
40
+ assert_equal ["lib", "test"], task.libs
38
41
  end
39
- assert_equal ["lib", "test"], task.libs
40
- end
41
-
42
- test "define passes the -I option to the call to ruby" do
43
- task = DeepTest::TestTask.new do |t|
44
- t.libs << "test"
42
+
43
+ test "define passes the -I option to the call to ruby" do
44
+ task = TestTask.new do |t|
45
+ t.libs << "test"
46
+ end
47
+ task.expects(:ruby).with(includes("-Ilib:test"))
48
+ Rake::Task["deep_test"].instance_variable_get("@actions").last.call
45
49
  end
46
- task.expects(:ruby).with(includes("-Ilib:test"))
47
- Rake::Task["deep_test"].instance_variable_get("@actions").last.call
48
- end
49
50
 
50
- test "define does not pass the -I option to the call to ruby if there are no directories to add to the load path" do
51
- task = DeepTest::TestTask.new do |t|
52
- t.libs = []
51
+ test "define does not pass the -I option to the call to ruby if there are no directories to add to the load path" do
52
+ task = TestTask.new do |t|
53
+ t.libs = []
54
+ end
55
+ task.expects(:ruby).with(Not(includes("-I")))
56
+ Rake::Task["deep_test"].instance_variable_get("@actions").last.call
53
57
  end
54
- task.expects(:ruby).with(Not(includes("-I")))
55
- Rake::Task["deep_test"].instance_variable_get("@actions").last.call
56
- end
57
-
58
- test "number_of_workers defaults to 2" do
59
- task = DeepTest::TestTask.new do |t|
60
- t.stubs(:define)
58
+
59
+ test "number_of_agents defaults to count from CpuInfo" do
60
+ task = TestTask.new do |t|
61
+ t.stubs(:define)
62
+ end
63
+ CpuInfo.expects(:new).returns stub(:count => 2)
64
+ assert_equal 2, task.number_of_agents
61
65
  end
62
- assert_equal 2, task.number_of_workers
63
- end
64
-
65
- test "number_of_workers can be set" do
66
- task = DeepTest::TestTask.new do |t|
67
- t.number_of_workers = 42
68
- t.stubs(:define)
66
+
67
+ test "number_of_agents can be set" do
68
+ task = TestTask.new do |t|
69
+ t.number_of_agents = 42
70
+ t.stubs(:define)
71
+ end
72
+ assert_equal 42, task.number_of_agents
69
73
  end
70
- assert_equal 42, task.number_of_workers
71
74
  end
72
75
  end
metadata CHANGED
@@ -1,26 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jstorimer-deep-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Josh Nichols
7
+ - anonymous z, Dan Manges, David Vollbracht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-06 00:00:00 -05:00
13
- default_executable: deep_test
12
+ date: 2010-02-04 00:00:00 -05:00
13
+ default_executable:
14
14
  dependencies: []
15
15
 
16
- description: Parallelized testing
17
- email: jstorimer@gmail.com
18
- executables:
19
- - deep_test
16
+ description: DeepTest runs tests in multiple processes.
17
+ email: daniel.manges@gmail.com
18
+ executables: []
19
+
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
23
  - README.rdoc
24
+ - TODO
24
25
  files:
25
26
  - .gitignore
26
27
  - CHANGELOG
@@ -28,56 +29,64 @@ files:
28
29
  - Rakefile
29
30
  - TODO
30
31
  - VERSION
31
- - bin/deep_test
32
- - jstorimer-deep-test-0.1.0.gem
33
- - jstorimer-deep-test.gemspec
32
+ - infrastructure/dynamic_teardown.rb
33
+ - infrastructure/fake_deadlock_error.rb
34
+ - infrastructure/load.rb
35
+ - infrastructure/test_central_command.rb
36
+ - infrastructure/test_exception.rb
37
+ - infrastructure/test_factory.rb
38
+ - infrastructure/test_logger.rb
39
+ - infrastructure/test_operator.rb
40
+ - infrastructure/test_result.rb
41
+ - infrastructure/thread_agent.rb
42
+ - infrastructure/timewarp/Rakefile
43
+ - infrastructure/timewarp/lib/timewarp.rb
44
+ - infrastructure/timewarp/test/timewarp_test.rb
34
45
  - lib/deep_test.rb
46
+ - lib/deep_test/agent.rb
47
+ - lib/deep_test/central_command.rb
48
+ - lib/deep_test/cpu_info.rb
35
49
  - lib/deep_test/database/mysql_setup_listener.rb
36
50
  - lib/deep_test/database/setup_listener.rb
37
51
  - lib/deep_test/deadlock_detector.rb
52
+ - lib/deep_test/demon.rb
53
+ - lib/deep_test/distributed/beachhead.rb
38
54
  - lib/deep_test/distributed/dispatch_controller.rb
39
- - lib/deep_test/distributed/drb_client_connection_info.rb
55
+ - lib/deep_test/distributed/establish_beachhead.rb
40
56
  - lib/deep_test/distributed/filename_resolver.rb
41
- - lib/deep_test/distributed/master_test_server.rb
42
- - lib/deep_test/distributed/multi_test_server_proxy.rb
43
- - lib/deep_test/distributed/null_work_unit.rb
44
- - lib/deep_test/distributed/remote_worker_client.rb
45
- - lib/deep_test/distributed/remote_worker_server.rb
57
+ - lib/deep_test/distributed/landing_fleet.rb
58
+ - lib/deep_test/distributed/landing_ship.rb
59
+ - lib/deep_test/distributed/remote_deployment.rb
46
60
  - lib/deep_test/distributed/rsync.rb
47
- - lib/deep_test/distributed/show_status.rhtml
48
- - lib/deep_test/distributed/test_server.rb
49
- - lib/deep_test/distributed/test_server_status.rb
50
- - lib/deep_test/distributed/test_server_workers.rb
51
- - lib/deep_test/distributed/throughput_runner.rb
52
- - lib/deep_test/distributed/throughput_statistics.rb
53
- - lib/deep_test/distributed/throughput_worker_client.rb
54
- - lib/deep_test/extensions/drb_extension.rb
61
+ - lib/deep_test/distributed/shell_environment.rb
62
+ - lib/deep_test/distributed/ssh_client_connection_info.rb
55
63
  - lib/deep_test/extensions/object_extension.rb
64
+ - lib/deep_test/failure_message.rb
65
+ - lib/deep_test/lib_root.rb
56
66
  - lib/deep_test/listener_list.rb
57
- - lib/deep_test/local_workers.rb
67
+ - lib/deep_test/local_deployment.rb
58
68
  - lib/deep_test/logger.rb
69
+ - lib/deep_test/main.rb
59
70
  - lib/deep_test/marshallable_exception_wrapper.rb
60
- - lib/deep_test/metrics/gatherer.rb
61
- - lib/deep_test/metrics/queue_lock_wait_time_measurement.rb
62
- - lib/deep_test/null_worker_listener.rb
63
- - lib/deep_test/option.rb
71
+ - lib/deep_test/metrics/data.rb
72
+ - lib/deep_test/metrics/measurement.rb
73
+ - lib/deep_test/null_listener.rb
64
74
  - lib/deep_test/options.rb
65
- - lib/deep_test/process_orchestrator.rb
75
+ - lib/deep_test/proxy_io.rb
66
76
  - lib/deep_test/rake_tasks.rb
67
77
  - lib/deep_test/result_reader.rb
68
78
  - lib/deep_test/rspec_detector.rb
69
- - lib/deep_test/server.rb
70
79
  - lib/deep_test/spec.rb
71
80
  - lib/deep_test/spec/extensions/example_group_methods.rb
72
81
  - lib/deep_test/spec/extensions/example_methods.rb
73
82
  - lib/deep_test/spec/extensions/options.rb
74
- - lib/deep_test/spec/extensions/reporter.rb
75
83
  - lib/deep_test/spec/extensions/spec_task.rb
76
84
  - lib/deep_test/spec/runner.rb
77
85
  - lib/deep_test/spec/work_result.rb
78
86
  - lib/deep_test/spec/work_unit.rb
79
87
  - lib/deep_test/test.rb
80
88
  - lib/deep_test/test/extensions/error.rb
89
+ - lib/deep_test/test/run_test_suite.rb
81
90
  - lib/deep_test/test/runner.rb
82
91
  - lib/deep_test/test/supervised_test_suite.rb
83
92
  - lib/deep_test/test/work_result.rb
@@ -86,7 +95,22 @@ files:
86
95
  - lib/deep_test/ui/console.rb
87
96
  - lib/deep_test/ui/null.rb
88
97
  - lib/deep_test/warlock.rb
89
- - lib/deep_test/worker.rb
98
+ - lib/telegraph.rb
99
+ - lib/telegraph/ack_sequence.rb
100
+ - lib/telegraph/logging.rb
101
+ - lib/telegraph/message.rb
102
+ - lib/telegraph/operator.rb
103
+ - lib/telegraph/switchboard.rb
104
+ - lib/telegraph/wire.rb
105
+ - negative_acceptance_tests/dying_spec.rb
106
+ - negative_acceptance_tests/dying_test.rb
107
+ - negative_acceptance_tests/failing_spec.rb
108
+ - negative_acceptance_tests/failing_test.rb
109
+ - negative_acceptance_tests/kill_agent_one_on_start_work.rb
110
+ - negative_acceptance_tests/passing_spec.rb
111
+ - negative_acceptance_tests/passing_test.rb
112
+ - negative_acceptance_tests/tasks.rake
113
+ - negative_acceptance_tests/tests.rb
90
114
  - sample_rails_project/README
91
115
  - sample_rails_project/Rakefile
92
116
  - sample_rails_project/app/controllers/application.rb
@@ -106,7 +130,7 @@ files:
106
130
  - sample_rails_project/db/schema.rb
107
131
  - sample_rails_project/deep_test.rb
108
132
  - sample_rails_project/doc/README_FOR_APP
109
- - sample_rails_project/lib/foreign_host_worker_simulation_listener.rb
133
+ - sample_rails_project/lib/foreign_host_agent_simulation_listener.rb
110
134
  - sample_rails_project/lib/tasks/create.sql
111
135
  - sample_rails_project/lib/tasks/db.rake
112
136
  - sample_rails_project/lib/tasks/deep_test.rake
@@ -1301,11 +1325,6 @@ files:
1301
1325
  - sample_rails_project/vendor/rails/railties/lib/tasks/tmp.rake
1302
1326
  - sample_rails_project/vendor/rails/railties/lib/test_help.rb
1303
1327
  - sample_rails_project/vendor/rails/railties/lib/webrick_server.rb
1304
- - script/internal/run_test_suite.rb
1305
- - script/public/master_test_server.rb
1306
- - script/public/test_server.rb
1307
- - script/public/test_throughput.rb
1308
- - spec/deep_test/option_spec.rb
1309
1328
  - spec/deep_test/options_spec.rb
1310
1329
  - spec/deep_test/spec/extensions/example_group_methods_spec.rb
1311
1330
  - spec/deep_test/spec/extensions/example_methods_spec.rb
@@ -1317,29 +1336,33 @@ files:
1317
1336
  - spec/deep_test/spec/work_unit_spec.rb
1318
1337
  - spec/spec.opts
1319
1338
  - spec/spec_helper.rb
1320
- - spec/thread_worker.rb
1339
+ - test/deep_test/agent_test.rb
1340
+ - test/deep_test/central_command_test.rb
1341
+ - test/deep_test/cpu_info_test.rb
1321
1342
  - test/deep_test/database/mysql_setup_listener_test.rb
1343
+ - test/deep_test/demon_test.rb
1344
+ - test/deep_test/distributed/beachhead_test.rb
1322
1345
  - test/deep_test/distributed/dispatch_controller_test.rb
1323
- - test/deep_test/distributed/drb_client_connection_info_test.rb
1324
1346
  - test/deep_test/distributed/filename_resolver_test.rb
1325
- - test/deep_test/distributed/master_test_server_test.rb
1326
- - test/deep_test/distributed/multi_test_server_proxy_test.rb
1327
- - test/deep_test/distributed/remote_worker_client_test.rb
1328
- - test/deep_test/distributed/remote_worker_server_test.rb
1347
+ - test/deep_test/distributed/landing_fleet_test.rb
1348
+ - test/deep_test/distributed/landing_ship_test.rb
1349
+ - test/deep_test/distributed/remote_deployment_test.rb
1329
1350
  - test/deep_test/distributed/rsync_test.rb
1330
- - test/deep_test/distributed/test_server_test.rb
1331
- - test/deep_test/distributed/test_server_workers_test.rb
1332
- - test/deep_test/distributed/throughput_runner_test.rb
1333
- - test/deep_test/distributed/throughput_worker_client_test.rb
1351
+ - test/deep_test/distributed/shell_environment_fixtures/set_bar_to_foo
1352
+ - test/deep_test/distributed/shell_environment_fixtures/set_foo_to_bar
1353
+ - test/deep_test/distributed/shell_environment_fixtures/set_foo_to_baz
1354
+ - test/deep_test/distributed/shell_environment_test.rb
1355
+ - test/deep_test/distributed/ssh_client_connection_info_test.rb
1334
1356
  - test/deep_test/extensions/object_extension_test.rb
1335
1357
  - test/deep_test/listener_list_test.rb
1336
- - test/deep_test/local_workers_test.rb
1358
+ - test/deep_test/local_deployment_test.rb
1337
1359
  - test/deep_test/logger_test.rb
1360
+ - test/deep_test/main_test.rb
1338
1361
  - test/deep_test/marshallable_exception_wrapper_test.rb
1339
- - test/deep_test/metrics/gatherer_test.rb
1340
- - test/deep_test/process_orchestrator_test.rb
1362
+ - test/deep_test/metrics/data_test.rb
1363
+ - test/deep_test/metrics/measurement_test.rb
1364
+ - test/deep_test/proxy_io_test.rb
1341
1365
  - test/deep_test/result_reader_test.rb
1342
- - test/deep_test/server_test.rb
1343
1366
  - test/deep_test/test/extensions/error_test.rb
1344
1367
  - test/deep_test/test/runner_test.rb
1345
1368
  - test/deep_test/test/supervised_test_suite_test.rb
@@ -1348,17 +1371,10 @@ files:
1348
1371
  - test/deep_test/test_task_test.rb
1349
1372
  - test/deep_test/ui/console_test.rb
1350
1373
  - test/deep_test/warlock_test.rb
1351
- - test/deep_test/worker_test.rb
1352
- - test/failing.rake
1353
- - test/failing.rb
1354
- - test/fake_deadlock_error.rb
1355
- - test/simple_test_blackboard.rb
1356
- - test/simple_test_blackboard_test.rb
1357
- - test/test_factory.rb
1358
1374
  - test/test_helper.rb
1359
1375
  - test/test_task_test.rb
1360
1376
  has_rdoc: true
1361
- homepage: http://github.com/qxjit/deep-test/
1377
+ homepage: http://deep-test.rubyforge.org
1362
1378
  licenses: []
1363
1379
 
1364
1380
  post_install_message:
@@ -1384,9 +1400,8 @@ rubyforge_project:
1384
1400
  rubygems_version: 1.3.5
1385
1401
  signing_key:
1386
1402
  specification_version: 3
1387
- summary: Edge version of deep-test
1403
+ summary: DeepTest runs tests in multiple processes.
1388
1404
  test_files:
1389
- - spec/deep_test/option_spec.rb
1390
1405
  - spec/deep_test/options_spec.rb
1391
1406
  - spec/deep_test/spec/extensions/example_group_methods_spec.rb
1392
1407
  - spec/deep_test/spec/extensions/example_methods_spec.rb
@@ -1397,29 +1412,30 @@ test_files:
1397
1412
  - spec/deep_test/spec/work_result_spec.rb
1398
1413
  - spec/deep_test/spec/work_unit_spec.rb
1399
1414
  - spec/spec_helper.rb
1400
- - spec/thread_worker.rb
1415
+ - test/deep_test/agent_test.rb
1416
+ - test/deep_test/central_command_test.rb
1417
+ - test/deep_test/cpu_info_test.rb
1401
1418
  - test/deep_test/database/mysql_setup_listener_test.rb
1419
+ - test/deep_test/demon_test.rb
1420
+ - test/deep_test/distributed/beachhead_test.rb
1402
1421
  - test/deep_test/distributed/dispatch_controller_test.rb
1403
- - test/deep_test/distributed/drb_client_connection_info_test.rb
1404
1422
  - test/deep_test/distributed/filename_resolver_test.rb
1405
- - test/deep_test/distributed/master_test_server_test.rb
1406
- - test/deep_test/distributed/multi_test_server_proxy_test.rb
1407
- - test/deep_test/distributed/remote_worker_client_test.rb
1408
- - test/deep_test/distributed/remote_worker_server_test.rb
1423
+ - test/deep_test/distributed/landing_fleet_test.rb
1424
+ - test/deep_test/distributed/landing_ship_test.rb
1425
+ - test/deep_test/distributed/remote_deployment_test.rb
1409
1426
  - test/deep_test/distributed/rsync_test.rb
1410
- - test/deep_test/distributed/test_server_test.rb
1411
- - test/deep_test/distributed/test_server_workers_test.rb
1412
- - test/deep_test/distributed/throughput_runner_test.rb
1413
- - test/deep_test/distributed/throughput_worker_client_test.rb
1427
+ - test/deep_test/distributed/shell_environment_test.rb
1428
+ - test/deep_test/distributed/ssh_client_connection_info_test.rb
1414
1429
  - test/deep_test/extensions/object_extension_test.rb
1415
1430
  - test/deep_test/listener_list_test.rb
1416
- - test/deep_test/local_workers_test.rb
1431
+ - test/deep_test/local_deployment_test.rb
1417
1432
  - test/deep_test/logger_test.rb
1433
+ - test/deep_test/main_test.rb
1418
1434
  - test/deep_test/marshallable_exception_wrapper_test.rb
1419
- - test/deep_test/metrics/gatherer_test.rb
1420
- - test/deep_test/process_orchestrator_test.rb
1435
+ - test/deep_test/metrics/data_test.rb
1436
+ - test/deep_test/metrics/measurement_test.rb
1437
+ - test/deep_test/proxy_io_test.rb
1421
1438
  - test/deep_test/result_reader_test.rb
1422
- - test/deep_test/server_test.rb
1423
1439
  - test/deep_test/test/extensions/error_test.rb
1424
1440
  - test/deep_test/test/runner_test.rb
1425
1441
  - test/deep_test/test/supervised_test_suite_test.rb
@@ -1428,11 +1444,5 @@ test_files:
1428
1444
  - test/deep_test/test_task_test.rb
1429
1445
  - test/deep_test/ui/console_test.rb
1430
1446
  - test/deep_test/warlock_test.rb
1431
- - test/deep_test/worker_test.rb
1432
- - test/failing.rb
1433
- - test/fake_deadlock_error.rb
1434
- - test/simple_test_blackboard.rb
1435
- - test/simple_test_blackboard_test.rb
1436
- - test/test_factory.rb
1437
1447
  - test/test_helper.rb
1438
1448
  - test/test_task_test.rb