jcukeforker 0.2.3 → 0.2.4

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: 16336863494d6a228e277b0a66de9bcca02a1527
4
- data.tar.gz: dba852dd02f74272edd6f4c645e21ff1906ec2b3
3
+ metadata.gz: 3a651ded56a13da6c8e0ed525d10d5b1bf4ae4c6
4
+ data.tar.gz: 42581a8e19d2a8b125eae37cfcf2ef1e05824eb3
5
5
  SHA512:
6
- metadata.gz: 65c45703a692fd01c9b0a64985bb3ffd821f94a730dea820075fed343df2afa0e649e91d9fffb3df9f2674914be1d6f7b81b8d0dc0f401f0fc165b330f9a6ae1
7
- data.tar.gz: 7fd90ad2eaa840999db8557bf50d890429dfe151c4b8fadfc05c8802d7e4389e73a7ad5911f73d9ef1d2e539504ff89dc82aef9f6b2b844d3a6de881fb512490
6
+ metadata.gz: 8b06f641b09f0464538b9e216a370fe92cc431041097086040a7f5bdd1f2f8f957bc60f0ebf071d0052ed74b6ba4780ea994e517dfc76872dce351c8727216d7
7
+ data.tar.gz: 94ebb64ff6470952d21da14619f6a35838f38d49a4927c3511761bb8d528f1543072c0172d126f9c6f1c2cf93f25a5864ab0e9fd968bf9fbaad5f13914cfa097
data/README.mdown CHANGED
@@ -4,6 +4,8 @@ Forking cukes and VNC displays.
4
4
 
5
5
  Jcukeforker is a fork of cukeforker desgined for jruby.
6
6
 
7
+ [![Gem Version](https://badge.fury.io/rb/jcukeforker.svg)](http://badge.fury.io/rb/jcukeforker)
8
+
7
9
  ### NB!
8
10
 
9
11
  If you're using cukeforker with selenium-webdriver and Firefox, all versions prior to 2.40 has a bug where custom
@@ -16,15 +18,20 @@ to avoid this.
16
18
  ```ruby
17
19
  # parallelize per feature
18
20
  JCukeForker::Runner.run Dir['features/**/*.feature'],
19
- :max => 4 # number of workers
21
+ :max => 4, # number of workers
20
22
  :out => "/path/to/reports", # output path
21
- :format => :html # passed to `cucumber --format`,
22
- :extra_args => %w[--extra arguments] # passed to cucumber,
23
+ :format => :html, # passed to `cucumber --format`,
24
+ :extra_args => %w[--extra arguments],# passed to cucumber,
23
25
  :vnc => true # manage a pool of VNC displays, assign one per worker.
24
26
 
25
27
  # parallelize per scenario, with one JUnit XML file per scenario.
26
28
  JCukeForker::Runner.run JCukeForker::Scenarios.tagged(%W[@edition ~@wip])
27
29
  :extra_args => %W[-f JCukeForker::Formatters::JunitScenarioFormatter --out results/junit]
30
+
31
+ # setup with vncserver and screen recording
32
+ JCukeForker::Runner.run Dir['features/**/*.feature'],
33
+ :vnc => %W[-geometry 1280x1024 -depth 24 -dpi 96]
34
+ :recorder => {:ext => 'mp4', :codec => 'mpeg4', :frame_size => '1280x1024', :frame_rate => '5'}
28
35
  ```
29
36
 
30
37
  Note on Patches/Pull Requests
@@ -126,6 +126,8 @@ module JCukeForker
126
126
  end
127
127
  end
128
128
  process = ChildProcess.build(*process_args)
129
+ process.io.stdout = $stdout
130
+ process.io.stderr = $stderr
129
131
  process.environment['DISPLAY'] = vnc_pool.get.display if vnc_pool
130
132
  l << process
131
133
  end
@@ -35,10 +35,6 @@ module JCukeForker
35
35
  task = @tasks.shift || '__KILL__'
36
36
  task = task.to_json if task.is_a? Hash
37
37
 
38
- if task.empty?
39
- puts "-----#{worker_path}...EMPTY TASK!"
40
- end
41
-
42
38
  @worker_sockets[worker_path].puts(task)
43
39
  end
44
40
  end
@@ -1,3 +1,3 @@
1
1
  module JCukeForker
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jcukeforker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Gowan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-09 00:00:00.000000000 Z
12
+ date: 2014-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber