semaphore_test_boosters 0.8.1 → 0.9.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3429edb276f5f78096d052344f7987638cf26763
4
- data.tar.gz: 01d1ad044c4cf150d03bbbbe2237bb3a9352a8a2
3
+ metadata.gz: c0cd189e1ab3d00c1b646732a7fdcdbeea7f5f86
4
+ data.tar.gz: 72a7f7e0c9e9d31fa94764ecb6b5a24e795cb25b
5
5
  SHA512:
6
- metadata.gz: 7a02679d8d45822850bf319558165e37d7700f67a90e564c9b13456a3bad783e6b1ca60e9bf4343653d0db15b22d0a4f8795aabd32410e2679fea66de73da019
7
- data.tar.gz: 17e43782bb7978ce44864606c8000f5e8884013de47002fb2411cd5c2708286b89def5da4bdfd71511fd3348e177d69071600a7afc1ca8d4060f86dd6ceff44c
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)
@@ -1,3 +1,3 @@
1
1
  module TestBoosters
2
- VERSION = "0.8.1"
2
+ VERSION = "0.9.1"
3
3
  end
@@ -5,4 +5,5 @@ require "test_boosters/cucumber_booster"
5
5
  cli_options = Semaphore::parse
6
6
  thread_index = cli_options[:index] - 1
7
7
  cucumber_booster = Semaphore::CucumberBooster.new(thread_index)
8
- cucumber_booster.run
8
+ exit_status = cucumber_booster.run
9
+ exit(exit_status)
@@ -5,4 +5,5 @@ require "test_boosters/rspec_booster"
5
5
  cli_options = Semaphore::parse
6
6
  thread_index = cli_options[:index] - 1
7
7
  rspec_booster = Semaphore::RspecBooster.new(thread_index)
8
- rspec_booster.run
8
+ exit_status = rspec_booster.run
9
+ exit(exit_status)
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ # Booster = Semaphore::RspecBooster
4
+
5
+ describe Semaphore::RspecBooster do
6
+ it 'fails' do
7
+ expect(TestBoosters::VERSION).to be "wrong"
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Semaphore::RspecBooster do
4
+ it 'passes' do
5
+ expect(0).to eq(0)
6
+ end
7
+ end
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.8.1
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