parallel_tests 2.4.0 → 2.4.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 +1 -0
- data/lib/parallel_tests.rb +8 -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: 768e593b46ba4be5ffbb617578277395eac75094
|
4
|
+
data.tar.gz: 852e844e9007dc8fa39bdfa502cee2e18faf1851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b4b3d18a2eff045af6a6c3a5eb68499aac4d0840924df39c1a64efb0a0306d14e2fafc8d87dd2804ae4e420268f3ea5940f393e8f991eccdfd0e033c244d9e
|
7
|
+
data.tar.gz: d27dd85a89f310c63492c51ee2c0fa2dd43eb7a6b185d1eb5f42446d47a9da619c38db29b7b0cbd04f6a695ce4f166384506c5057ea2973c7847fffac81a0161
|
data/Readme.md
CHANGED
@@ -240,6 +240,7 @@ TIPS
|
|
240
240
|
- Remove `--loadby` from `.rspec`
|
241
241
|
- Instantly see failures (instead of just a red F) with [rspec-instafail](https://github.com/grosser/rspec-instafail)
|
242
242
|
- Use [rspec-retry](https://github.com/NoRedInk/rspec-retry) (not rspec-rerun) to rerun failed tests.
|
243
|
+
- [JUnit formatter configuration](https://github.com/grosser/parallel_tests/wiki#with-rspec_junit_formatter----by-jgarber)
|
243
244
|
|
244
245
|
### Cucumber
|
245
246
|
|
data/lib/parallel_tests.rb
CHANGED
@@ -44,6 +44,14 @@ module ParallelTests
|
|
44
44
|
ENV["TEST_ENV_NUMBER"].to_i <= 1
|
45
45
|
end
|
46
46
|
|
47
|
+
def parent_pid
|
48
|
+
if WINDOWS
|
49
|
+
`wmic process where (processid=#{Process.pid}) get parentprocessid`
|
50
|
+
else
|
51
|
+
`ps -o ppid= -p#{`ps -o ppid= -p#{Process.pid}`}` #the true parent is one layer up.
|
52
|
+
end.to_i
|
53
|
+
end
|
54
|
+
|
47
55
|
def wait_for_other_processes_to_finish
|
48
56
|
return unless ENV["TEST_ENV_NUMBER"]
|
49
57
|
sleep 1 until number_of_running_processes <= 1
|
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.4.
|
4
|
+
version: 2.4.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: 2016-02-
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|