semaphore_test_boosters 0.6.0 → 0.7.0
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/executor.rb +1 -1
- data/lib/test_boosters/rspec_booster.rb +8 -2
- data/lib/test_boosters/version.rb +1 -1
- metadata +2 -3
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92088c90b3a3a9d537979b6216294cd0a6794024
|
4
|
+
data.tar.gz: 79a1f1d373acc7db05ffe042e511fc2481c1b53a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46418c94c4643df51e98f84e19cb9c725bf8773287d0638dd7d3fa69ae344e148752058503ecc399e3c7876d045983566665758f092370d124edf14ec3445011
|
7
|
+
data.tar.gz: b9d8374913159d898599b31af35b8cf472bc12dbeaadd7711a43c629460396ff9a0a84edf4911c4f642a9c75c72a1462d9e252d33a0311bcdd85a6ed5174a5fa
|
@@ -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
|
-
|
23
|
+
run_command(specs_to_run.join(" "))
|
24
24
|
end
|
25
25
|
rescue StandardError => e
|
26
26
|
if @thread_index == 0
|
27
|
-
|
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))
|
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.
|
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-
|
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
|