parallel_split_test 0.4.1 → 0.5.0

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: 0fa0e4f110f5a7deb5786f38a047eeaa55e6ad17
4
- data.tar.gz: f03085959e5cbe97d15444e054fbf3b6a45fe168
3
+ metadata.gz: 2e90a44b561fab085aee56146c75c9e233a053f2
4
+ data.tar.gz: fee213704dc9f492d09ba8c443620dce366a2626
5
5
  SHA512:
6
- metadata.gz: cdc90f8c669c80948c84ef37bcd1488aeb1214112293d84ee2e139444f6f440e696dee30e16d80056ce46ed3a2bf3f718bad6f6afccce72e3af0a18f3a05ab96
7
- data.tar.gz: 3a38adb81ca1711c008b43ed2a08f2b8070db884613baecc7488b376096fa39329e4442ab1007788408c7748d82dd9efe991f6b6c475ad7480b33bad315b21fd
6
+ metadata.gz: ed9ced1cb0a6450edf873c170a33df479defdf043e9e1b05a105551674208e990b8d5fa6a2cd799f7d7f26bf13dd23947dfa4e59e0254cf43bcd5443525769b9
7
+ data.tar.gz: 4a86e76334fee6419befa5a688aafd2c2a1687f520f119cabbc18c0869fdd79e66191d5f4864c6e66215f10dde1d2a1037826685186f9aecfeb1c1f58756bd73
data/Readme.md CHANGED
@@ -66,7 +66,7 @@ TIPS
66
66
  ====
67
67
  - use `-o/--out` to get unified/clean output from all processes
68
68
  - set number of processes to use with `PARALLEL_SPLIT_TEST_PROCESSES` environment variable
69
- - [unify JUnit output](http://blog.tech.renttherunway.com/?p=631) for rspec
69
+ - [unify JUnit output](http://dresscode.renttherunway.com/blog/631) for rspec
70
70
 
71
71
  TODO
72
72
  ====
@@ -78,6 +78,7 @@ Authors
78
78
 
79
79
  ### [Contributors](https://github.com/grosser/parallel_split_test/contributors)
80
80
  - [bootstraponline](https://github.com/bootstraponline)
81
+ - [ModST](https://github.com/ModST)
81
82
 
82
83
  [Michael Grosser](http://grosser.it)<br/>
83
84
  michael@grosser.it<br/>
@@ -16,6 +16,7 @@ Options are:
16
16
  -v, --version Display the program version.
17
17
  -h, --help Display this help message.
18
18
  --no-summary Does not display test summary.
19
+ --no-merge Does not merge --out results.
19
20
  TEXT
20
21
  exit
21
22
  end
@@ -13,6 +13,7 @@ module ParallelSplitTest
13
13
 
14
14
  def run(err, out)
15
15
  no_summary = @args.delete('--no-summary')
16
+ no_merge = @args.delete('--no-merge')
16
17
 
17
18
  @options = RSpec::Core::ConfigurationOptions.new(@args)
18
19
 
@@ -24,13 +25,13 @@ module ParallelSplitTest
24
25
  ParallelSplitTest.process_number = process_number
25
26
  set_test_env_number(process_number)
26
27
  modify_out_file_in_args(process_number) if out_file
27
-
28
28
  out = OutputRecorder.new(out)
29
29
  setup_copied_from_rspec(err, out)
30
30
  [run_group_of_tests, out.recorded]
31
31
  end
32
32
 
33
- combine_out_files if out_file
33
+
34
+ combine_out_files if out_file unless no_merge
34
35
 
35
36
  reprint_result_lines(out, results.map(&:last)) unless no_summary
36
37
  results.map(&:first).max # combine exit status
@@ -40,7 +41,7 @@ module ParallelSplitTest
40
41
 
41
42
  # modify + reparse args to unify output
42
43
  def modify_out_file_in_args(process_number)
43
- @args[out_file_position] = "#{out_file}.#{process_number}"
44
+ @args[out_file_position] = process_number.to_s << "-" << out_file
44
45
  @options = RSpec::Core::ConfigurationOptions.new(@args)
45
46
  end
46
47
 
@@ -62,7 +63,7 @@ module ParallelSplitTest
62
63
 
63
64
  def combine_out_files
64
65
  File.open(out_file, "w") do |f|
65
- Dir["#{out_file}.*"].each do |file|
66
+ Dir["*-#{out_file}"].each do |file|
66
67
  f.write File.read(file)
67
68
  File.delete(file)
68
69
  end
@@ -1,3 +1,3 @@
1
1
  module ParallelSplitTest
2
- VERSION = '0.4.1'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_split_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-29 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 2.1.0
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.2.2
76
+ rubygems_version: 2.4.5.1
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Split a big test file into multiple chunks and run them in parallel