semaphore_test_boosters 0.8.1 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_boosters/cucumber_booster.rb +4 -2
- data/lib/test_boosters/rspec_booster.rb +4 -2
- data/lib/test_boosters/version.rb +1 -1
- data/script/cucumber_booster +2 -1
- data/script/rspec_booster +2 -1
- data/test_data_fail/fail_spec.rb +9 -0
- data/test_data_pass/pass_spec.rb +7 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0cd189e1ab3d00c1b646732a7fdcdbeea7f5f86
|
4
|
+
data.tar.gz: 72a7f7e0c9e9d31fa94764ecb6b5a24e795cb25b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5e651aac15bd4647f1b68c63de5c4ebb9605fd4688da12b1142726bc62d20f3bb31dc11424bc3d68d62c94718dfc66bd11b57b02b78cf296cf34c66f9dfd9f0
|
7
|
+
data.tar.gz: 631f9f7e1823be455222c0d09088ae698bfb9b233706c3833b1be9b849cbf6c2b755898e05c2cbfdbd6e2fdfb533769109572a6d0b3ca203026dbd94a64666c1
|
@@ -14,19 +14,21 @@ module Semaphore
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def run
|
17
|
+
exit_code = true
|
17
18
|
begin
|
18
19
|
features_to_run = select
|
19
20
|
|
20
21
|
if features_to_run.empty?
|
21
22
|
puts "No feature files in this thread!"
|
22
23
|
else
|
23
|
-
Semaphore::execute("bundle exec cucumber #{features_to_run.join(" ")}")
|
24
|
+
exit_code = Semaphore::execute("bundle exec cucumber #{features_to_run.join(" ")}")
|
24
25
|
end
|
25
26
|
rescue StandardError => e
|
26
27
|
if @thread_index == 0
|
27
|
-
Semaphore::execute("bundle exec cucumber #{@spec_path}")
|
28
|
+
exit_code = Semaphore::execute("bundle exec cucumber #{@spec_path}")
|
28
29
|
end
|
29
30
|
end
|
31
|
+
exit_code
|
30
32
|
end
|
31
33
|
|
32
34
|
def select
|
@@ -14,19 +14,21 @@ module Semaphore
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def run
|
17
|
+
exit_code = true
|
17
18
|
begin
|
18
19
|
specs_to_run = select
|
19
20
|
|
20
21
|
if specs_to_run.empty?
|
21
22
|
puts "No spec files in this thread!"
|
22
23
|
else
|
23
|
-
run_command(specs_to_run.join(" "))
|
24
|
+
exit_code = run_command(specs_to_run.join(" "))
|
24
25
|
end
|
25
26
|
rescue StandardError => e
|
26
27
|
if @thread_index == 0
|
27
|
-
run_command(@spec_path)
|
28
|
+
exit_code = run_command(@spec_path)
|
28
29
|
end
|
29
30
|
end
|
31
|
+
exit_code
|
30
32
|
end
|
31
33
|
|
32
34
|
def run_command(specs)
|
data/script/cucumber_booster
CHANGED
data/script/rspec_booster
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semaphore_test_boosters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MAINTAINER Rendered Text
|
@@ -85,6 +85,8 @@ files:
|
|
85
85
|
- test_data/b_spec.rb
|
86
86
|
- test_data/c.feature
|
87
87
|
- test_data/c_spec.rb
|
88
|
+
- test_data_fail/fail_spec.rb
|
89
|
+
- test_data_pass/pass_spec.rb
|
88
90
|
homepage: https://github.com/renderedtext/test-boosters
|
89
91
|
licenses:
|
90
92
|
- MIT
|