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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1f4bfdd3a1b255d2f95ad98dc11564cc137fe08
4
- data.tar.gz: b273836c89a6e65c756797a52994bdd6f4078376
3
+ metadata.gz: f5a51a34a91c7947c0a43231f159eb47dcf92678
4
+ data.tar.gz: 7cc48638574403d6d898c3b4bf64396a25268c54
5
5
  SHA512:
6
- metadata.gz: c326454b909a928bd01295ced39cc7e7ef7a9cd411422cc6c869f07cc77787e4050e816e17f9d923d740f31d285e942942cfc2e21ec0610614ed645098c21bae
7
- data.tar.gz: a8e3a767d91ca441f8c9adf5fb1f2f16498cde3bee2f556e56196962e67f10af4c078aa3b30081291ec6ca78ff2d2e5c8ddc8080ae08344a7626c6e55863cdb7
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
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '2.17.0'
2
+ VERSION = Version = '2.17.1'
3
3
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel