semaphore_test_boosters 1.0.1 → 1.0.2

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: 23dff24801b069b3afa9bc6f8dd4f077b9bcc624
4
- data.tar.gz: 405f29c86784e85521e2e3afba8aa106f8d6bd7a
3
+ metadata.gz: 761bccbbc970b3f32927078ef6896514a77e8593
4
+ data.tar.gz: 7cc8fb8108863de9874e6ee69ccea98f021dde29
5
5
  SHA512:
6
- metadata.gz: b767f28d9bf26461fb44fa719f4dcf0a39eb2e9fc5ece3b80b118c69c6e6c3584194a22e79417bdc3c0a2a80aa954fe1fe879cb69424e4107358e67064743f18
7
- data.tar.gz: fc2ba9e4d55179687d6b4813458b80d7f2fc0eb89d61304faae0787e6af2b7bb38e3cceaf782e44f8cd837a4b86fb4866c1d285c54365fb976b3407c165fc665
6
+ metadata.gz: ddd635e918b87531ac1ef847258b1d28fdd2d40044565b922d802d3fddf776fdea34fd4231fe1adbedad3d41d6472a48fe36a5066d47b0d24e8628d32e3e7531
7
+ data.tar.gz: 36413a6d1148bdaca1d27968c91cf3f839826c50356659f059f2dd1e64b9cdbc4ef4c6fb731fe6ef13de737c3ffd5eaf0cbca3e15147c4b4805db79482776651
@@ -0,0 +1 @@
1
+ semaphoreci: --format json --out=cucumber_report.json
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "test_boosters/cucumber_booster"
4
- require 'cucumber_booster_config'
4
+ require 'test_boosters/run_cucumber_config'
5
5
 
6
- CucumberBoosterConfig::CLI.start ["inject", "."]
6
+ Semaphore::run_cucumber_config
7
7
 
8
8
  cli_options = Semaphore::parse
9
9
  thread_index = cli_options[:index] - 1
@@ -21,16 +21,24 @@ module Semaphore
21
21
  if features_to_run.empty?
22
22
  puts "No feature files in this thread!"
23
23
  else
24
- exit_code = Semaphore::execute("bundle exec cucumber #{features_to_run.join(" ")}")
24
+ exit_code = run_command(features_to_run.join(" "))
25
25
  end
26
26
  rescue StandardError => e
27
27
  if @thread_index == 0
28
- exit_code = Semaphore::execute("bundle exec cucumber #{@spec_path}")
28
+ exit_code = run_command(@spec_path)
29
29
  end
30
30
  end
31
31
  exit_code
32
32
  end
33
33
 
34
+ def run_command(specs)
35
+ puts
36
+ puts "========================= Running Cucumber =========================="
37
+ puts
38
+
39
+ Semaphore::execute("bundle exec cucumber #{specs}")
40
+ end
41
+
34
42
  def select
35
43
  with_fallback do
36
44
  feature_report = JSON.parse(File.read(@report_path))
@@ -0,0 +1,13 @@
1
+ require 'cucumber_booster_config'
2
+
3
+ module Semaphore
4
+ module_function
5
+
6
+ def run_cucumber_config()
7
+ puts
8
+ puts "================== Running Cucumber Booster Config ==================="
9
+ puts
10
+
11
+ CucumberBoosterConfig::CLI.start ["inject", "."]
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module TestBoosters
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -32,4 +32,5 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "bundler", "~> 1.12"
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
+ spec.add_development_dependency "cucumber-rails"
35
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaphore_test_boosters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MAINTAINER Rendered Text
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semaphore_cucumber_booster_config
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cucumber-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: Gem for auto-parallelizing builds across Semaphore jobs.
70
84
  email:
71
85
  - devops@renderedtext.com
@@ -83,6 +97,7 @@ files:
83
97
  - Rakefile
84
98
  - bin/console
85
99
  - bin/setup
100
+ - config/cucumber.yml
86
101
  - exe/cucumber_booster
87
102
  - exe/rspec_booster
88
103
  - lib/test_boosters.rb
@@ -93,6 +108,7 @@ files:
93
108
  - lib/test_boosters/leftover_files.rb
94
109
  - lib/test_boosters/logger.rb
95
110
  - lib/test_boosters/rspec_booster.rb
111
+ - lib/test_boosters/run_cucumber_config.rb
96
112
  - lib/test_boosters/version.rb
97
113
  - test_boosters.gemspec
98
114
  - test_data/a.feature