parallel_tests 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parallel_tests/tasks.rb +8 -3
- data/lib/parallel_tests/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8539140ebc96ac00552e9f1e51f63789f1007a997829d86e79a786a71400b7b
|
4
|
+
data.tar.gz: be0f3f0785cd3b05882f9928a9fe83a6e10203a95e931b40f89566f1398e0691
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bd0cfd72dd3a48b491198a5d2be73bb353dbdd5d1cd23cfac58f2429d44fe6b1ce6121c2ba6caed76c4b3c4aa4646fde9ef030dfd1d0a38fe30499e1a2ea38d
|
7
|
+
data.tar.gz: 10493da0d865c2e3987c8c11edb8a8605349d23a754bcb70ba05e1579a5f9a8693e9e80730b5c8d601b66efe4406bdf14b50a3ec3ce305a339d07075f5c77d51
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -123,8 +123,12 @@ namespace :parallel do
|
|
123
123
|
ParallelTests::Tasks.check_for_pending_migrations
|
124
124
|
if defined?(ActiveRecord::Base) && [:ruby, :sql].include?(ActiveRecord::Base.schema_format)
|
125
125
|
# fast: dump once, load in parallel
|
126
|
-
|
127
|
-
|
126
|
+
if Gem::Version.new(Rails.version) >= Gem::Version.new('6.1.0')
|
127
|
+
Rake::Task["db:schema:dump"].invoke
|
128
|
+
else
|
129
|
+
type = (ActiveRecord::Base.schema_format == :ruby ? "schema" : "structure")
|
130
|
+
Rake::Task["db:#{type}:dump"].invoke
|
131
|
+
end
|
128
132
|
|
129
133
|
# remove database connection to prevent "database is being accessed by other users"
|
130
134
|
ActiveRecord::Base.remove_connection if ActiveRecord::Base.configurations.any?
|
@@ -163,7 +167,8 @@ namespace :parallel do
|
|
163
167
|
end
|
164
168
|
|
165
169
|
# load the structure from the structure.sql file
|
166
|
-
|
170
|
+
# (faster for rails < 6.1, deprecated after and only configured by `ActiveRecord::Base.schema_format`)
|
171
|
+
desc "Load structure for test databases via db:schema:load --> parallel:load_structure[num_cpus]"
|
167
172
|
task :load_structure, :count do |_, args|
|
168
173
|
ParallelTests::Tasks.run_in_parallel(
|
169
174
|
"#{ParallelTests::Tasks.rake_bin} #{ParallelTests::Tasks.purge_before_load} " \
|
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: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -68,8 +68,8 @@ licenses:
|
|
68
68
|
- MIT
|
69
69
|
metadata:
|
70
70
|
bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
|
71
|
-
documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.5.
|
72
|
-
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.5.
|
71
|
+
documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.5.1/Readme.md
|
72
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.5.1
|
73
73
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
74
74
|
post_install_message:
|
75
75
|
rdoc_options: []
|