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 +4 -4
- data/.rspec +2 -0
- data/.rubocop.yml +1 -1
- data/.travis.yml +15 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +49 -29
- data/README.md +5 -0
- data/lib/report_factory/rspec/formatter.rb +4 -0
- data/lib/report_factory/rspec/version.rb +1 -1
- data/report_factory-rspec.gemspec +4 -3
- metadata +24 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8026f591c7835a9112cc7fae65299ed00bb06f41
|
4
|
+
data.tar.gz: a82019b582e9805e57c670612f4cb9cf77b71250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55f233650a1ea0477d4ebd6ee8f28731eaa18a0001e07ce9fb477c1fef6289617659fc73aff872a574fa6fa4c73e11e2e021bedd60a8295bfa4a51c9d73a6f48
|
7
|
+
data.tar.gz: bcd4b4bd2451d68113354f9dfa0dc25fd3b8a4b310533d9dd7bad2a4513181395ecb1c27ad9525fdb47d7d518e610722eb0f501a74789847f4e82aaa071e346a
|
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
ADDED
@@ -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
data/Gemfile.lock
CHANGED
@@ -1,51 +1,71 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
report_factory-rspec (0.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
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
rspec-
|
25
|
-
|
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.
|
28
|
-
rspec-mocks (3.
|
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.
|
31
|
-
rspec-support (3.
|
32
|
-
rubocop (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.
|
42
|
+
parser (>= 2.5, != 2.5.1.1)
|
35
43
|
powerpack (~> 0.1)
|
36
|
-
rainbow (>= 2.2.2, <
|
44
|
+
rainbow (>= 2.2.2, < 4.0)
|
37
45
|
ruby-progressbar (~> 1.7)
|
38
|
-
unicode-display_width (~> 1.
|
39
|
-
ruby-progressbar (1.
|
40
|
-
|
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
|
64
|
+
bundler (~> 2.0.1)
|
47
65
|
report_factory-rspec!
|
48
|
-
rubocop (~> 0.
|
66
|
+
rubocop (~> 0.63.1)
|
67
|
+
simplecov (>= 0.16.1)
|
68
|
+
webmock (~> 3.5.1)
|
49
69
|
|
50
70
|
BUNDLED WITH
|
51
|
-
|
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,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
lib = File.expand_path('
|
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 '
|
27
|
-
spec.add_development_dependency '
|
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.
|
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:
|
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:
|
28
|
+
name: rubocop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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:
|
40
|
+
version: 0.63.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: simplecov
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 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.
|
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.
|
120
|
+
summary: report_factory-rspec_0.2.3
|
106
121
|
test_files: []
|