deep_test 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 1.2.1 (September 25, 2008)
2
+
3
+ * rspec 1.1.4 compatibility
4
+ * Requires rspec 1.1.4
5
+
1
6
  1.2.0 (March 28, 2008)
2
7
 
3
8
  * Added capability to run distributed
@@ -140,6 +140,23 @@ druby://<hostname>:4021 by default. It will also provide a webserver bound
140
140
  to port 4020 that provides a status page summarizing the state of all the
141
141
  test servers.
142
142
 
143
+ ==== Overriding the DRb uri for the Test Server or Master Test Server
144
+
145
+ The DRb url that the Test Server or Master Test Server should bind to can be
146
+ specified when the process is started. Use the --uri option followed by the
147
+ DRb url that you would like DRb to bind to and return to clients. By default,
148
+ DRb does not provide any capability to bind to all addresses but return a
149
+ specific IP or hostname as part of the DRb url for clients. DeepTest provides
150
+ a special DRb protocol to enable this, drubyall. If you wish your test server
151
+ to listen on all addresses (which you probably do), start the server
152
+ with a command like this (where deeptest1.local is the hostname of the machine):
153
+ > deep_test test_server --uri drubyall://deeptest1.local/
154
+
155
+ The server will report that it is listening on druby://deeptest1.local as the
156
+ public DRb url, but it will actually accept connections on all addresses to
157
+ server requests.
158
+
159
+
143
160
  ==== Configuring Your Project
144
161
 
145
162
  If you're using rsync over ssh, create a DeepTest test task similar to that
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require 'rake/testtask'
3
3
  require 'rake/rdoctask'
4
4
  require 'rake/gempackagetask'
5
5
  require 'rake/contrib/sshpublisher'
6
+ require 'yaml'
6
7
  $LOAD_PATH << File.dirname(__FILE__) + "/lib"
7
8
  require "deep_test/rake_tasks"
8
9
 
@@ -135,7 +136,7 @@ task :run_distributed_with_failover do |t|
135
136
  puts
136
137
  puts "*** Running distributed with no server - expect a failover message ***"
137
138
  puts
138
- Rake::Task[:distributed_spec].execute
139
+ Rake::Task[:distributed_spec].execute "dummy arg"
139
140
  end
140
141
 
141
142
  task :failing_test do
@@ -160,7 +161,7 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
160
161
  rdoc.title = "DeepTest"
161
162
  rdoc.options << '--line-numbers'
162
163
  rdoc.rdoc_files.include(
163
- 'README',
164
+ 'README.rdoc',
164
165
  'CHANGELOG',
165
166
  'lib/deep_test/null_worker_listener.rb',
166
167
  'lib/deep_test/database/*.rb'
@@ -168,8 +169,11 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
168
169
  end
169
170
 
170
171
  desc "Upload RDoc to RubyForge"
171
- task :publish_rdoc => [:rdoc] do
172
- Rake::SshDirPublisher.new("dcmanges@rubyforge.org", "/var/www/gforge-projects/deep-test", "doc").upload
172
+ task :publish_rdoc => [:rerdoc] do
173
+ rubyforge_config = "#{ENV['HOME']}/.rubyforge/user-config.yml"
174
+ username = YAML.load_file(rubyforge_config)["username"]
175
+ sh "chmod -R 775 doc"
176
+ sh "scp -rqp doc/* #{username}@rubyforge.org:/var/www/gforge-projects/deep-test"
173
177
  end
174
178
 
175
179
  Gem::manage_gems
@@ -178,7 +182,7 @@ specification = Gem::Specification.new do |s|
178
182
  s.platform = Gem::Platform::RUBY
179
183
  s.name = "deep_test"
180
184
  s.summary = "DeepTest runs tests in multiple processes."
181
- s.version = "1.2.0"
185
+ s.version = "1.2.1"
182
186
  s.author = "anonymous z, Dan Manges, David Vollbracht"
183
187
  s.description = s.summary
184
188
  s.email = "daniel.manges@gmail.com"
@@ -187,10 +191,10 @@ specification = Gem::Specification.new do |s|
187
191
  s.executables << "deep_test"
188
192
 
189
193
  s.has_rdoc = true
190
- s.extra_rdoc_files = ['README', 'CHANGELOG']
191
- s.rdoc_options << '--title' << "DeepTest" << '--main' << 'README' << '--line-numbers'
194
+ s.extra_rdoc_files = ['README.rdoc', 'CHANGELOG']
195
+ s.rdoc_options << '--title' << "DeepTest" << '--main' << 'README.rdoc' << '--line-numbers'
192
196
 
193
- s.files = FileList['{lib,script,test,bin}/**/*.{rb,rake,rhtml}', 'README', 'CHANGELOG', 'Rakefile'].to_a
197
+ s.files = FileList['{lib,script,test,bin}/**/*.{rb,rake,rhtml}', 'README.rdoc', 'CHANGELOG', 'Rakefile'].to_a
194
198
  end
195
199
 
196
200
  Rake::GemPackageTask.new(specification) do |package|
@@ -198,8 +202,7 @@ Rake::GemPackageTask.new(specification) do |package|
198
202
  package.need_tar = true
199
203
  end
200
204
 
201
- Rake::Task[:gem].prerequisites.unshift :deep_test
202
- Rake::Task[:gem].prerequisites.unshift :test
205
+ Rake::Task[:gem].prerequisites.unshift :default
203
206
 
204
207
  task :tar do
205
208
  system "tar zcf pkg/deep_test.tar.gz --exclude=.svn --exclude='*.tar.gz' --exclude='*.gem' --directory=.. deep_test"
@@ -7,13 +7,13 @@ module DeepTest
7
7
  if defined?(::Spec)
8
8
  if ::Spec::VERSION::MAJOR >= 1 &&
9
9
  ::Spec::VERSION::MINOR >= 1 &&
10
- ::Spec::VERSION::TINY >= 3
10
+ ::Spec::VERSION::TINY >= 4
11
11
  yield
12
12
  else
13
13
  require 'spec/rake/spectask'
14
14
  ::Spec::Rake::SpecTask.class_eval do
15
15
  def deep_test(options)
16
- raise "* DeepTest RSpec support requires RSpec 1.1.3 or greater"
16
+ raise "* DeepTest RSpec support requires RSpec 1.1.4 or greater"
17
17
  end
18
18
  end
19
19
  end
@@ -8,7 +8,7 @@ module Spec
8
8
  if error.nil?
9
9
  example_passed(example)
10
10
  elsif Spec::Example::ExamplePendingError === error
11
- example_pending(example.class, example, error.message)
11
+ example_pending(example, error.message)
12
12
  else
13
13
  example_failed(example, error)
14
14
  end
@@ -17,7 +17,7 @@ module Spec
17
17
  def failure(example, error)
18
18
  backtrace_tweaker.tweak_backtrace(error)
19
19
  example_name = "#{example.class.description} #{example.description}"
20
- failure = Failure.new(example_name, error)
20
+ failure = Failure.new(example, error)
21
21
  @failures << failure
22
22
  formatters.each do |f|
23
23
  f.example_failed(example, @failures.length, failure)
@@ -1,6 +1,7 @@
1
1
  require "test/unit/testresult"
2
2
  require "test/unit/error"
3
3
  require 'test/unit/failure'
4
+ require 'test/unit/autorunner'
4
5
 
5
6
  require File.dirname(__FILE__) + "/test/extensions/error"
6
7
  require File.dirname(__FILE__) + "/test/runner"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - anonymous z, Dan Manges, David Vollbracht
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-29 00:00:00 -04:00
12
+ date: 2008-09-25 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -20,7 +20,7 @@ executables:
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - README
23
+ - README.rdoc
24
24
  - CHANGELOG
25
25
  files:
26
26
  - lib/deep_test/database/mysql_setup_listener.rb
@@ -122,7 +122,7 @@ files:
122
122
  - test/test_helper.rb
123
123
  - test/test_task_test.rb
124
124
  - test/failing.rake
125
- - README
125
+ - README.rdoc
126
126
  - CHANGELOG
127
127
  - Rakefile
128
128
  has_rdoc: true
@@ -132,7 +132,7 @@ rdoc_options:
132
132
  - --title
133
133
  - DeepTest
134
134
  - --main
135
- - README
135
+ - README.rdoc
136
136
  - --line-numbers
137
137
  require_paths:
138
138
  - lib
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements: []
152
152
 
153
153
  rubyforge_project: deep-test
154
- rubygems_version: 1.0.1
154
+ rubygems_version: 1.2.0
155
155
  signing_key:
156
156
  specification_version: 2
157
157
  summary: DeepTest runs tests in multiple processes.