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 +4 -4
- data/config/cucumber.yml +1 -0
- data/exe/cucumber_booster +2 -2
- data/lib/test_boosters/cucumber_booster.rb +10 -2
- data/lib/test_boosters/run_cucumber_config.rb +13 -0
- data/lib/test_boosters/version.rb +1 -1
- data/test_boosters.gemspec +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 761bccbbc970b3f32927078ef6896514a77e8593
|
4
|
+
data.tar.gz: 7cc8fb8108863de9874e6ee69ccea98f021dde29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddd635e918b87531ac1ef847258b1d28fdd2d40044565b922d802d3fddf776fdea34fd4231fe1adbedad3d41d6472a48fe36a5066d47b0d24e8628d32e3e7531
|
7
|
+
data.tar.gz: 36413a6d1148bdaca1d27968c91cf3f839826c50356659f059f2dd1e64b9cdbc4ef4c6fb731fe6ef13de737c3ffd5eaf0cbca3e15147c4b4805db79482776651
|
data/config/cucumber.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
semaphoreci: --format json --out=cucumber_report.json
|
data/exe/cucumber_booster
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "test_boosters/cucumber_booster"
|
4
|
-
require '
|
4
|
+
require 'test_boosters/run_cucumber_config'
|
5
5
|
|
6
|
-
|
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 =
|
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 =
|
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
|
data/test_boosters.gemspec
CHANGED
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.
|
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-
|
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
|