parallel_tests 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/parallel_tests/tasks.rb +3 -5
- data/lib/parallel_tests/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d9f28ec073ea8d44225e62b1711f22c5505899d
|
4
|
+
data.tar.gz: 551762cbedf6007ee5daeb2da3c91f209ac9c55b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c73f5d255928fa82985d974bd2abd78926d77bc6ead9994ca943f16e535163af9823072c649c117f4b9b7a2b2cd02e0baa9e1822909edf8c7e58e010e9c0c4b
|
7
|
+
data.tar.gz: 3b1b46204e714939cdd4cc6e0a59ce420f69d433453949d3310d3ef3c4a6b6655cb53a01405be338eb836f1f808facf9c47ef6dd2977c0eabb821df183965324
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
parallel_tests (1.0.
|
4
|
+
parallel_tests (1.0.4)
|
5
5
|
parallel
|
6
6
|
|
7
7
|
GEM
|
@@ -24,7 +24,7 @@ GEM
|
|
24
24
|
gherkin-ruby (0.3.0)
|
25
25
|
multi_json (1.8.2)
|
26
26
|
multi_test (0.0.2)
|
27
|
-
parallel (1.
|
27
|
+
parallel (1.2.2)
|
28
28
|
rake (10.0.3)
|
29
29
|
rspec (2.13.0)
|
30
30
|
rspec-core (~> 2.13.0)
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -81,15 +81,13 @@ namespace :parallel do
|
|
81
81
|
desc "update test databases by dumping and loading --> parallel:prepare[num_cpus]"
|
82
82
|
task(:prepare, [:count]) do |t,args|
|
83
83
|
ParallelTests::Tasks.check_for_pending_migrations
|
84
|
+
# dump then load in parallel for ruby or sql schema formats
|
84
85
|
if defined?(ActiveRecord) && ActiveRecord::Base.schema_format == :ruby
|
85
|
-
# dump then load in parallel
|
86
86
|
Rake::Task['db:schema:dump'].invoke
|
87
87
|
Rake::Task['parallel:load_schema'].invoke(args[:count])
|
88
88
|
else
|
89
|
-
|
90
|
-
|
91
|
-
taskname = Rake::Task.task_defined?('db:test:prepare') ? 'db:test:prepare' : 'app:db:test:prepare'
|
92
|
-
ParallelTests::Tasks.run_in_parallel("rake #{taskname}", args)
|
89
|
+
Rake::Task['db:structure:dump'].invoke
|
90
|
+
Rake::Task['parallel:load_structure'].invoke(args[:count])
|
93
91
|
end
|
94
92
|
end
|
95
93
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|