report_factory-rspec 0.2.2 → 0.2.3

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: eed711c33a99b00834c031e480304b0826448d27
4
- data.tar.gz: 88c5c53a96b4ae039ca1e185b6394ca9f45380ee
3
+ metadata.gz: 8026f591c7835a9112cc7fae65299ed00bb06f41
4
+ data.tar.gz: a82019b582e9805e57c670612f4cb9cf77b71250
5
5
  SHA512:
6
- metadata.gz: 5dfa1410e963fad9b0740cd1eb5edf7fca81aeffdedc25b9157831ff9dbe8452942628943f6a8dc38bd5c0147a9f22a60932390ffd27fd258662fd4439c92d42
7
- data.tar.gz: 823823d3b3c8980b174b3111c7697ee956ccbf9141bb40cca7a8cefd5d1d8dfc55fddf883fc931fc87ece398b0e43fb1d62fb37bbaf1edb59a5535924af545e9
6
+ metadata.gz: 55f233650a1ea0477d4ebd6ee8f28731eaa18a0001e07ce9fb477c1fef6289617659fc73aff872a574fa6fa4c73e11e2e021bedd60a8295bfa4a51c9d73a6f48
7
+ data.tar.gz: bcd4b4bd2451d68113354f9dfa0dc25fd3b8a4b310533d9dd7bad2a4513181395ecb1c27ad9525fdb47d7d518e610722eb0f501a74789847f4e82aaa071e346a
data/.rspec CHANGED
@@ -1,2 +1,4 @@
1
1
  --require spec_helper --format doc
2
+ <%if ENV['REPORT'] == 'true' %>
2
3
  --format ReportFactory::Rspec::Formatter
4
+ <%end%>
@@ -1,4 +1,4 @@
1
- Style/BlockLength:
1
+ Metrics:
2
2
  Exclude:
3
3
  - 'Rakefile'
4
4
  - '**/*.rake'
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.5.0
4
+ env:
5
+ global:
6
+ - CC_TEST_REPORTER_ID=b15be13729779a502775d4a2adaf3b13ae23a63e8b9503db43490f0b0522e9b3
7
+ before_script:
8
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
9
+ - chmod +x ./cc-test-reporter
10
+ - ./cc-test-reporter before-build
11
+ script:
12
+ - bundle exec rubocop
13
+ - bundle exec rspec
14
+ after_script:
15
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/Gemfile CHANGED
@@ -4,5 +4,7 @@ source 'https://rubygems.org'
4
4
 
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
+ gem 'bundler', '~> 2.0.1'
8
+
7
9
  # Specify your gem's dependencies in report_factory-rspec.gemspec
8
10
  gemspec
@@ -1,51 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- report_factory-rspec (0.2.2)
4
+ report_factory-rspec (0.2.3)
5
5
  rspec (~> 3.5)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.3.0)
10
+ addressable (2.6.0)
11
+ public_suffix (>= 2.0.2, < 4.0)
12
+ ast (2.4.0)
13
+ crack (0.4.3)
14
+ safe_yaml (~> 1.0.0)
11
15
  diff-lcs (1.3)
12
- parallel (1.12.0)
13
- parser (2.4.0.2)
14
- ast (~> 2.3)
15
- powerpack (0.1.1)
16
- rainbow (2.2.2)
17
- rake
18
- rake (12.3.0)
19
- rspec (3.7.0)
20
- rspec-core (~> 3.7.0)
21
- rspec-expectations (~> 3.7.0)
22
- rspec-mocks (~> 3.7.0)
23
- rspec-core (3.7.0)
24
- rspec-support (~> 3.7.0)
25
- rspec-expectations (3.7.0)
16
+ docile (1.3.1)
17
+ hashdiff (0.3.8)
18
+ jaro_winkler (1.5.2)
19
+ json (2.1.0)
20
+ parallel (1.13.0)
21
+ parser (2.6.0.0)
22
+ ast (~> 2.4.0)
23
+ powerpack (0.1.2)
24
+ public_suffix (3.0.3)
25
+ rainbow (3.0.0)
26
+ rspec (3.8.0)
27
+ rspec-core (~> 3.8.0)
28
+ rspec-expectations (~> 3.8.0)
29
+ rspec-mocks (~> 3.8.0)
30
+ rspec-core (3.8.0)
31
+ rspec-support (~> 3.8.0)
32
+ rspec-expectations (3.8.2)
26
33
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.7.0)
28
- rspec-mocks (3.7.0)
34
+ rspec-support (~> 3.8.0)
35
+ rspec-mocks (3.8.0)
29
36
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.7.0)
31
- rspec-support (3.7.0)
32
- rubocop (0.51.0)
37
+ rspec-support (~> 3.8.0)
38
+ rspec-support (3.8.0)
39
+ rubocop (0.63.1)
40
+ jaro_winkler (~> 1.5.1)
33
41
  parallel (~> 1.10)
34
- parser (>= 2.3.3.1, < 3.0)
42
+ parser (>= 2.5, != 2.5.1.1)
35
43
  powerpack (~> 0.1)
36
- rainbow (>= 2.2.2, < 3.0)
44
+ rainbow (>= 2.2.2, < 4.0)
37
45
  ruby-progressbar (~> 1.7)
38
- unicode-display_width (~> 1.0, >= 1.0.1)
39
- ruby-progressbar (1.9.0)
40
- unicode-display_width (1.3.0)
46
+ unicode-display_width (~> 1.4.0)
47
+ ruby-progressbar (1.10.0)
48
+ safe_yaml (1.0.4)
49
+ simplecov (0.16.1)
50
+ docile (~> 1.1)
51
+ json (>= 1.8, < 3)
52
+ simplecov-html (~> 0.10.0)
53
+ simplecov-html (0.10.2)
54
+ unicode-display_width (1.4.1)
55
+ webmock (3.5.1)
56
+ addressable (>= 2.3.6)
57
+ crack (>= 0.3.2)
58
+ hashdiff
41
59
 
42
60
  PLATFORMS
43
61
  ruby
44
62
 
45
63
  DEPENDENCIES
46
- bundler (~> 1.16)
64
+ bundler (~> 2.0.1)
47
65
  report_factory-rspec!
48
- rubocop (~> 0.51.0)
66
+ rubocop (~> 0.63.1)
67
+ simplecov (>= 0.16.1)
68
+ webmock (~> 3.5.1)
49
69
 
50
70
  BUNDLED WITH
51
- 1.16.0
71
+ 2.0.1
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # ReportFactory::Rspec
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/report_factory-rspec.svg)](https://badge.fury.io/rb/report_factory-rspec)
4
+ [![Build Status](https://travis-ci.org/igor-starostenko/report_factory-rspec.svg?branch=master)](https://travis-ci.org/igor-starostenko/report_factory-rspec)
5
+ [![Maintainability](https://api.codeclimate.com/v1/badges/70ff8b7c010a50c9e3c1/maintainability)](https://codeclimate.com/github/igor-starostenko/report_factory-rspec/maintainability)
6
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/70ff8b7c010a50c9e3c1/test_coverage)](https://codeclimate.com/github/igor-starostenko/report_factory-rspec/test_coverage)
7
+
3
8
  *ReportFactory* helps you save each of your test runs so that they are always available for reports and analytics.
4
9
  It consists of three parts:
5
10
  1. A [rails server](https://github.com/igor-starostenko/report_factory) that provides an interface via JSON API and saves your test runs in a DB;
@@ -48,11 +48,13 @@ module ReportFactory
48
48
 
49
49
  def seed(notification)
50
50
  return unless notification.seed_used?
51
+
51
52
  @output_hash[:seed] = notification.seed
52
53
  end
53
54
 
54
55
  def close(_notification)
55
56
  return if @output_hash[:examples].empty? || !summary_is_valid?
57
+
56
58
  print_result(ReportFactory::Rspec::API.send_report(@output_hash))
57
59
  end
58
60
 
@@ -80,6 +82,7 @@ module ReportFactory
80
82
 
81
83
  def print_result(response)
82
84
  return print_success if response.code == '201'
85
+
83
86
  print_error(response)
84
87
  end
85
88
 
@@ -112,6 +115,7 @@ module ReportFactory
112
115
  def format_exception(example)
113
116
  exception = example.exception
114
117
  return unless exception
118
+
115
119
  {
116
120
  class: exception.class.name,
117
121
  message: exception.message,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ReportFactory
4
4
  module Rspec
5
- VERSION = '0.2.2'
5
+ VERSION = '0.2.3'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'report_factory/rspec/version'
6
6
 
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_dependency 'rspec', '~> 3.5'
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 1.16'
27
- spec.add_development_dependency 'rubocop', '~> 0.51.0'
26
+ spec.add_development_dependency 'rubocop', '~> 0.63.1'
27
+ spec.add_development_dependency 'simplecov', '~> 0.16'
28
+ spec.add_development_dependency 'webmock', '~> 3.5'
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: report_factory-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Starostenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -25,33 +25,47 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.16'
33
+ version: 0.63.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.16'
40
+ version: 0.63.1
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop
42
+ name: simplecov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.51.0
47
+ version: '0.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.51.0
54
+ version: '0.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.5'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.5'
55
69
  description: RSpec adapter for report_factory
56
70
  email:
57
71
  - contactigorstar@gmail.com
@@ -64,6 +78,7 @@ files:
64
78
  - ".rubocop.yml"
65
79
  - ".ruby-gemset"
66
80
  - ".ruby-version"
81
+ - ".travis.yml"
67
82
  - CODE_OF_CONDUCT.md
68
83
  - Gemfile
69
84
  - Gemfile.lock
@@ -102,5 +117,5 @@ rubyforge_project:
102
117
  rubygems_version: 2.6.12
103
118
  signing_key:
104
119
  specification_version: 4
105
- summary: report_factory-rspec_0.2.2
120
+ summary: report_factory-rspec_0.2.3
106
121
  test_files: []