parallelized_specs 0.3.41 → 0.3.42

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = "jake@instructure.com"
13
13
  gem.homepage = "http://github.com/jakesorce/#{gem.name}"
14
14
  gem.authors = "Jake Sorce, Bryan Madsen, Shawn Meredith"
15
- gem.version = "0.3.41"
15
+ gem.version = "0.3.42"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -13,6 +13,12 @@ namespace :parallel do
13
13
  ParallelizedSpecs.execute_parallel_db('rake db:drop RAILS_ENV=test', args)
14
14
  end
15
15
 
16
+ desc "cassandra drop per thread"
17
+ task :optional_task, :task_name, :count do |t, args|
18
+ ParallelizedSpecs.execute_parallel_db('rake #{:task_name} RAILS_ENV=test', args)
19
+ end
20
+
21
+
16
22
  desc "update test databases by dumping and loading --> parallel:dump_load[num_cpus]"
17
23
  task(:dump_load, [:count] => 'db:abort_if_pending_migrations') do |t, args|
18
24
  if defined?(ActiveRecord) && ActiveRecord::Base.schema_format == :ruby
@@ -31,13 +37,13 @@ namespace :parallel do
31
37
  ParallelizedSpecs.execute_parallel_db('rake db:drop db:create db:migrate RAILS_ENV=test', args)
32
38
  end
33
39
 
34
- # when dumping/resetting takes too long
40
+ # when dumping/resetting takes too long
35
41
  desc "update test databases via db:migrate --> parallel:migrate[num_cpus]"
36
42
  task :migrate, :count do |t, args|
37
43
  ParallelizedSpecs.execute_parallel_db('rake db:migrate RAILS_ENV=test', args)
38
44
  end
39
45
 
40
- # just load the schema (good for integration server <-> no development db)
46
+ # just load the schema (good for integration server <-> no development db)
41
47
  desc "load dumped schema for test databases via db:schema:load --> parallel:load_schema[num_cpus]"
42
48
  task :load_schema, :count do |t, args|
43
49
  ParallelizedSpecs.execute_parallel_db('rake db:test:load', args)
@@ -296,7 +296,7 @@ class ParallelizedSpecs
296
296
  rerun_failed_examples = true
297
297
  puts "#{l} will be ran and marked as a success if it passes"
298
298
 
299
- result = %x[DISPLAY=:99 bundle exec rake spec #{l}]
299
+ result = %x[bundle exec rake spec #{l}]
300
300
  #can't just use exit code, if specs fail to start it will pass or if a spec isn't found, and sometimes rspec 1 exit codes aren't right
301
301
  rerun_status = result.scan(/\d*[^\D]\d*/).to_a
302
302
  if rerun_status.length >= 2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.41"
8
+ s.version = "0.3.42"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jake Sorce, Bryan Madsen, Shawn Meredith"]
12
- s.date = "2012-11-15"
12
+ s.date = "2012-11-28"
13
13
  s.email = "jake@instructure.com"
14
14
  s.files = [
15
15
  "Gemfile",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallelized_specs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 65
4
+ hash: 71
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 41
10
- version: 0.3.41
9
+ - 42
10
+ version: 0.3.42
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-15 00:00:00 Z
18
+ date: 2012-11-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel