parallel_split_test 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Readme.md +2 -1
- data/bin/parallel_split_test +1 -0
- data/lib/parallel_split_test/command_line.rb +5 -4
- data/lib/parallel_split_test/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e90a44b561fab085aee56146c75c9e233a053f2
|
4
|
+
data.tar.gz: fee213704dc9f492d09ba8c443620dce366a2626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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/>
|
data/bin/parallel_split_test
CHANGED
@@ -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
|
-
|
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] = "
|
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["
|
66
|
+
Dir["*-#{out_file}"].each do |file|
|
66
67
|
f.write File.read(file)
|
67
68
|
File.delete(file)
|
68
69
|
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
|
+
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:
|
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:
|
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.
|
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
|