parallel_tests 2.17.0 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +2 -1
- data/lib/parallel_tests/tasks.rb +5 -0
- 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: f5a51a34a91c7947c0a43231f159eb47dcf92678
|
4
|
+
data.tar.gz: 7cc48638574403d6d898c3b4bf64396a25268c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b1cc69d8645a0468d7cf9a61326050d77b9f294c8f5db512e8bc3fb16b436cee1ac49cc91be6f456b746fe5ce42f2cad0a011ddb8cb4b77d53993e32765e97b
|
7
|
+
data.tar.gz: 02187019194e0f549ecd8c04902c199f00a473c08e209efd8d333dc0925c6a474adb487adfa5908e2eb0fb2a6423161cebc2c33f6552b637db5ab5f7cbbba6ab
|
data/Readme.md
CHANGED
@@ -51,11 +51,12 @@ test:
|
|
51
51
|
rake parallel:test --> got 4 CPUs? --> 26 seconds
|
52
52
|
...
|
53
53
|
|
54
|
-
Test by pattern (e.g. use one integration server per subfolder / see if you broke any 'user'-related tests)
|
54
|
+
Test by pattern with Regex (e.g. use one integration server per subfolder / see if you broke any 'user'-related tests)
|
55
55
|
|
56
56
|
rake parallel:test[^test/unit] # every test file in test/unit folder
|
57
57
|
rake parallel:test[user] # run users_controller + user_helper + user tests
|
58
58
|
rake parallel:test['user|product'] # run user and product related tests
|
59
|
+
rake parallel:spec['spec\/(?!features)'] # run RSpec tests except the tests in spec/features
|
59
60
|
|
60
61
|
|
61
62
|
### Example output
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -116,6 +116,11 @@ namespace :parallel do
|
|
116
116
|
ParallelTests::Tasks.run_in_parallel("rake db:migrate RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
|
117
117
|
end
|
118
118
|
|
119
|
+
desc "Rollback test databases via db:rollback --> parallel:rollback[num_cpus]"
|
120
|
+
task :rollback, :count do |_,args|
|
121
|
+
ParallelTests::Tasks.run_in_parallel("rake db:rollback RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
|
122
|
+
end
|
123
|
+
|
119
124
|
# just load the schema (good for integration server <-> no development db)
|
120
125
|
desc "Load dumped schema for test databases via db:schema:load --> parallel:load_schema[num_cpus]"
|
121
126
|
task :load_schema, :count do |_,args|
|
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: 2.17.
|
4
|
+
version: 2.17.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: 2017-10
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|