launcuke 0.0.2 → 0.0.3

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODgyNmIwNzBhOWJlNjk3NjYzN2E4NDlmOGNmZDczMDE4ZTM0ODY5OA==
4
+ YzU4MzU2ZTEwNjVlMWMxMDVlOWIxNTk5MzQ4OWM3Njk0YzAxMDk0Ng==
5
5
  data.tar.gz: !binary |-
6
- YzdkOTBhNjFiZDliZDA4NzFlMmE5ODU2Y2Q0MmI3NTE2YzFmYzNlOQ==
6
+ ZWI2ZjQ1ZDZjNzg2YzQ5Mjg1YmE1NWVhNjU1NGY1NGZmMmFjOGFiOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjVjNWU2ZWFiM2I4MWIzYWE2MzdmZDc0NjQxOTQwODBlMDBlMWM3MjFlNTlh
10
- Y2IwNTM1NTAyZDkzYWZmYTk0NTdhNDQxMDUyY2FkNzU3NmIwMThjM2M1MWFj
11
- MWQ1NDlkOWQwZWQxMzM0MTliNzQzN2Q1Y2ZlN2FlN2UzYjRiNmI=
9
+ NjBlMWFjNzk1YTIwMDk2ZTYxZTA2MDFhY2EzZWU3ODFkZjFjNzZmMjI4NWQ0
10
+ N2ZlNDk2MjE0NDM3ODY2MmUyMTZjZjljNmQzOWNhODZlYWM5MjA4ZTMwNzIx
11
+ YmI3MzhlYmYxYzNhMDkzYzc0YjljMWMzNDk1NmE5N2QwZjI2MWU=
12
12
  data.tar.gz: !binary |-
13
- MzkwZDBjYjI0OTEwNGI4OTYzNWE5MGM3NDY5YmY5ZTU4ZjIzODBmYjVjODJl
14
- ZWY1Njc1Yzk3NTMxYTBhODgwNzg2NDI3ODk4ZWQ5NmE5ZTkzMzJiZmMwNTIx
15
- NTRmNTY1MmQ0MzdkMGVhZmYyZmY0YzQ0Mjc4NzQ5MmQ0MTc5YTk=
13
+ N2Y0OGI4OWI2OTU2NzI5YzUwMGRjNTE5YTU2YzdjZWY4YTZjZDhkZTg0M2Ji
14
+ YjZmMmJjM2MwNjQ4Y2I1NmI0MzFhZmQ5MTQzMjA2MTE2ZmEzY2QzZDQ3ZGIx
15
+ NzY5OGQyMWVlYWZjNDM3OGQzMzczMWIzMTQ4ZWJlNzgyNzdhMzQ=
data/Gemfile CHANGED
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gem 'cucumber'
4
4
  gem 'rspec'
5
5
  gem 'nokogiri'
6
+ gem 'forkoff'
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Launcuke
2
2
 
3
+ Forked from https://github.com/simcap/multicuke and changed the reports root folder.
4
+
3
5
  Run your cucumber test and generate a index html page to show all reports by feature.
4
6
 
5
7
  ## Installation
data/launcuke.gemspec CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../lib/launcuke/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'launcuke'
6
- s.date = '2014-11-24'
6
+ s.date = '2015-01-07'
7
7
  s.summary = "Launch cuke!"
8
8
  s.description = "A simple cucumber runner gem"
9
9
  s.authors = ["Yi MIN"]
@@ -19,4 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency 'cucumber'
20
20
  s.add_dependency 'rspec'
21
21
  s.add_dependency 'nokogiri'
22
+ s.add_dependency 'forkoff'
22
23
  end
@@ -121,8 +121,7 @@ module Launcuke
121
121
  if dry_run
122
122
  0
123
123
  else
124
-
125
- results = features_dirs.each { |features_dir|
124
+ results = features_dirs.forkoff!(:processes => forks_pool_size) { |features_dir|
126
125
  report_file_path = File.join(reports_path, "#{features_dir.dir_name}.html")
127
126
  feature_full_path = File.join(features_root_path, "#{features_dir.dir_name}")
128
127
  main_command = %W[bundle exec cucumber #{feature_full_path}]
@@ -134,9 +133,8 @@ module Launcuke
134
133
  result
135
134
  }
136
135
 
137
-
138
136
  global_exit_status = results.inject(0) { |acc, result|
139
- result ? acc : acc +1
137
+ result ? acc : acc + 1
140
138
  }
141
139
  puts "Global exit status = #{global_exit_status}"
142
140
  global_exit_status
@@ -1,3 +1,3 @@
1
1
  module Launcuke
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/lib/launcuke.rb CHANGED
@@ -4,3 +4,4 @@ require "launcuke/runner"
4
4
  require 'fileutils'
5
5
  require 'builder'
6
6
  require 'nokogiri'
7
+ require 'forkoff'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: launcuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yi MIN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-24 00:00:00.000000000 Z
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: forkoff
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: A simple cucumber runner gem
56
70
  email: tebat804@gmail.com
57
71
  executables: []