semaphore_test_boosters 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8f6d4b5d51fcecc710187e316cbe0aa2d2bbe1c
4
- data.tar.gz: 9cbd76012317035acd388aa993c5aac89b49184e
3
+ metadata.gz: b072a6447772e3d6d465a12dcc4f7d583cf40432
4
+ data.tar.gz: d5b42645fae00a89d9f405c84d5cbb2c91e20db6
5
5
  SHA512:
6
- metadata.gz: b5bd7835d5e6c9f29269fa9ebd77ed8c34584df306332f35775f49010304f0b0a74c5e61b981d790ac9d56356c8ebc305869e206f53a3884fd00c932227cf936
7
- data.tar.gz: 46180af1f61302d1c2a63cbbb120b1814b1cf776409f6e3bef6f91a4fca75272fe9547fc7403a4150d81240d6d213c9bc88fe2840548fe6b283fc5049d6569a3
6
+ metadata.gz: 1d82bac4cd1c6100a5603e5029ede7937f8c82281fd4c43441c7363d16687d2b1323e577cc8f3cbc475c906527f081342409ab8d2a8ca980f9de6f1c4053325e
7
+ data.tar.gz: 5a7c942ebe496e0128e153b8beea1d1d7f07f4ddf9128d702d849ec14d9870f8701e6063c19238bae384921bc1834ccfb5cf2d505635be1e61aa80086e25d03f
data/config/cucumber.yml CHANGED
@@ -1 +1 @@
1
- semaphoreci: --format json --out=cucumber_report.json
1
+ default: --format pretty
data/exe/cucumber_booster CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "test_boosters/cucumber_booster"
4
- require 'test_boosters/run_cucumber_config'
3
+ require 'test_boosters'
5
4
 
6
5
  Semaphore::run_cucumber_config
7
6
 
@@ -9,4 +8,8 @@ cli_options = Semaphore::parse
9
8
  thread_index = cli_options[:index] - 1
10
9
  cucumber_booster = Semaphore::CucumberBooster.new(thread_index)
11
10
  exit_status = cucumber_booster.run
11
+
12
+ report_path = cucumber_booster.report_path
13
+ Semaphore::InsightsUploader.new.upload("cucumber", report_path)
14
+
12
15
  exit(exit_status)
@@ -7,9 +7,12 @@ module Semaphore
7
7
  require "test_boosters/leftover_files"
8
8
 
9
9
  class CucumberBooster
10
+ attr_reader :report_path
11
+
10
12
  def initialize(thread_index)
11
13
  @thread_index = thread_index
12
14
  @cucumber_split_configuration_path = ENV["CUCUMBER_SPLIT_CONFIGURATION_PATH"] || "#{ENV["HOME"]}/cucumber_split_configuration.json"
15
+ @report_path = "#{ENV["HOME"]}/rspec_report.json"
13
16
  @spec_path = ENV["SPEC_PATH"] || "features"
14
17
  end
15
18
 
@@ -1,3 +1,3 @@
1
1
  module TestBoosters
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
data/lib/test_boosters.rb CHANGED
@@ -2,6 +2,7 @@ require "test_boosters/version"
2
2
  require "test_boosters/rspec_booster"
3
3
  require "test_boosters/cucumber_booster"
4
4
  require "test_boosters/insights_uploader"
5
+ require "test_boosters/run_cucumber_config"
5
6
 
6
7
  module TestBoosters
7
8
  # Your code goes here...
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.2.1
4
+ version: 1.2.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-09 00:00:00.000000000 Z
11
+ date: 2017-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semaphore_cucumber_booster_config