semaphore_test_boosters 0.6.0 → 0.7.0

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: 1f6e45fb758f8d91cd222dfb51f795275107cc1c
4
- data.tar.gz: 293a6ee761eab63e3cbb59f5a4bdeead7f58d585
3
+ metadata.gz: 92088c90b3a3a9d537979b6216294cd0a6794024
4
+ data.tar.gz: 79a1f1d373acc7db05ffe042e511fc2481c1b53a
5
5
  SHA512:
6
- metadata.gz: 5a60f432b4ea5b26840d95376eab825d77f92c6ffc7e31e60ce5b3ce210e911527ce963934e9d6f9f42aaefbfa92d6042412ad20d72863d246d1feb7b207fcb6
7
- data.tar.gz: 351a94c54e7c91a2c76d2df49f2cc26dbde7878d2601aad83615f4b9da429d527a674e2b8439636567c0db616a967152c451c8754e6ab224c93c747d1fd2421b
6
+ metadata.gz: 46418c94c4643df51e98f84e19cb9c725bf8773287d0638dd7d3fa69ae344e148752058503ecc399e3c7876d045983566665758f092370d124edf14ec3445011
7
+ data.tar.gz: b9d8374913159d898599b31af35b8cf472bc12dbeaadd7711a43c629460396ff9a0a84edf4911c4f642a9c75c72a1462d9e252d33a0311bcdd85a6ed5174a5fa
@@ -6,6 +6,6 @@ module Semaphore
6
6
  system(command)
7
7
  log("Command finished, exit status : #{$?.exitstatus}")
8
8
 
9
- exit($?.exitstatus)
9
+ $?.exitstatus
10
10
  end
11
11
  end
@@ -20,15 +20,21 @@ module Semaphore
20
20
  if specs_to_run.empty?
21
21
  puts "No spec files in this thread!"
22
22
  else
23
- Semaphore::execute("bundle exec rspec #{specs_to_run.join(" ")}")
23
+ run_command(specs_to_run.join(" "))
24
24
  end
25
25
  rescue StandardError => e
26
26
  if @thread_index == 0
27
- Semaphore::execute("bundle exec rspec #{@spec_path}")
27
+ run_command(@spec_path)
28
28
  end
29
29
  end
30
30
  end
31
31
 
32
+ def run_command(specs)
33
+ options = "--format documentation --format json --out #{@report_path}"
34
+ puts "options: #{options}"
35
+ Semaphore::execute("bundle exec rspec #{options} #{specs}")
36
+ end
37
+
32
38
  def select
33
39
  with_fallback do
34
40
  rspec_report = JSON.parse(File.read(@report_path))
@@ -1,3 +1,3 @@
1
1
  module TestBoosters
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  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: 0.6.0
4
+ version: 0.7.0
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-02-21 00:00:00.000000000 Z
11
+ date: 2017-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,7 +61,6 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
63
  - ".rspec"
64
- - ".travis.yml"
65
64
  - Gemfile
66
65
  - LICENSE.txt
67
66
  - README.md
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.5
5
- before_install: gem install bundler -v 1.12.5