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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac1a67e85b702af960f6e713e19430eddfd076b5
4
- data.tar.gz: ee8509f054d88880bd2ae77d03b33fdc6fc03ed2
3
+ metadata.gz: 768e593b46ba4be5ffbb617578277395eac75094
4
+ data.tar.gz: 852e844e9007dc8fa39bdfa502cee2e18faf1851
5
5
  SHA512:
6
- metadata.gz: 2ee3f49cf7cf8e120e1df061477ee8211c76f3fb8a60ec605c9b838ce99fdad8d015e12492a4f9317e896541a4b96c43a6f138d340b9fc993a08492a235dc02b
7
- data.tar.gz: fa4dba5b0c02c298b871612dc4c5934a0063cb31272547fe3b376edfe379eaaff0b562eb8786c61186744582ff76fcbb04f7ec04be56a82d9cd7857b147954b5
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '2.4.0'
2
+ VERSION = Version = '2.4.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.4.0
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-16 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel