parallel_report_portal 2.0.2 → 2.0.3
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 +4 -4
- data/.github/workflows/tests.yml +28 -0
- data/README.md +1 -1
- data/lib/parallel_report_portal/configuration.rb +18 -10
- data/lib/parallel_report_portal/version.rb +1 -1
- metadata +4 -4
- data/.drone.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145afd41ab4f1c21dff64f431a1abd47e2f0b94f492b94f0be13c09717d0b5ae
|
4
|
+
data.tar.gz: 7cf7ddcaad82438d5208222341ca067d80fa60e9b2f0b947060b0ccf25121303
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3019ba93923d3e486ee944eda901992f3b58b9a6f09a0824c28ab11f02c5d9e68893d79844d92cfee3db16a8e4d34d99849c8e90b7a1dc9d1cd8b3ffde72bf8b
|
7
|
+
data.tar.gz: e512e9ecdcfe469f75cf90065ac2021c1c5bfd47f1f32b237f6cbede8ab4cc98af4601bd456689b88f0ed456a4083ed457df4da51ef8cd08fbd5979e94779f7d
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on: [push]
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
test:
|
14
|
+
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
strategy:
|
17
|
+
matrix:
|
18
|
+
ruby-version: ['2.6', '2.7', '3.0']
|
19
|
+
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v2
|
22
|
+
- name: Set up Ruby
|
23
|
+
uses: ruby/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: ${{ matrix.ruby-version }}
|
26
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
27
|
+
- name: Run tests
|
28
|
+
run: bundle exec rake
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ The formatter supports configuration via a config file or via environment variab
|
|
30
30
|
|
31
31
|
#### Configuration file
|
32
32
|
|
33
|
-
It will search for a file called `report_portal.yml` or `REPORT_PORTAL.YML` in `./config` and `./`. It expects this file to contain the standard Report Portal configuration options -- see the Report Portal documentation.
|
33
|
+
It will search for a file called `report_portal.yml` or `REPORT_PORTAL.YML` in `./config` and `./`. It expects this file to contain the standard Report Portal configuration options -- see the Report Portal documentation. Optionally, the config file keys may match those accepted through environment variables -- they may contain 'rp_' and 'RP_'.
|
34
34
|
|
35
35
|
#### Environment variables
|
36
36
|
|
@@ -45,10 +45,10 @@ module ParallelReportPortal
|
|
45
45
|
# @return [Array<String>] an array of attributes to attach to this launch
|
46
46
|
# (Report Portal 5)
|
47
47
|
attr_reader :attributes
|
48
|
-
|
48
|
+
|
49
49
|
|
50
50
|
# Create an instance of Configuration.
|
51
|
-
#
|
51
|
+
#
|
52
52
|
# The initializer will first attempt to load a configuration files called
|
53
53
|
# +report_portal.yml+ (case insensitive) in the both the +config+ and current
|
54
54
|
# working directory (the former takes precidence). It will then apply
|
@@ -64,18 +64,18 @@ module ParallelReportPortal
|
|
64
64
|
# Sets the tags for the launch. If an array is provided, the array is used,
|
65
65
|
# if a string is provided, the string is broken into components by splitting
|
66
66
|
# on a comma.
|
67
|
-
#
|
67
|
+
#
|
68
68
|
# e.g.
|
69
69
|
# configuration.tags="one,two, three"
|
70
70
|
# #=> ["one", "two", "three"]
|
71
|
-
#
|
71
|
+
#
|
72
72
|
# param [String | Array<String>] taglist a list of tags to set
|
73
73
|
def tags=(taglist)
|
74
74
|
if taglist.is_a?(String)
|
75
75
|
@tags = taglist.split(',').map(&:strip)
|
76
76
|
elsif taglist.is_a?(Array)
|
77
77
|
@tags = taglist
|
78
|
-
else
|
78
|
+
else
|
79
79
|
@tags = []
|
80
80
|
end
|
81
81
|
tags
|
@@ -84,7 +84,7 @@ module ParallelReportPortal
|
|
84
84
|
|
85
85
|
# Enables the debug flag which is sent to Report Portal. If this flag is set
|
86
86
|
# Report Portal will include this launch in its 'debug' tab.
|
87
|
-
#
|
87
|
+
#
|
88
88
|
# param [Boolean | String] value if the value is a Boolean, it will take that value
|
89
89
|
# if it is a String, it will set values of 'true' to +true+, else all values will be false.
|
90
90
|
def debug=(value)
|
@@ -98,18 +98,18 @@ module ParallelReportPortal
|
|
98
98
|
# Sets the attributes for the launch. If an array is provided, the array is used,
|
99
99
|
# if a string is provided, the string is broken into components by splitting
|
100
100
|
# on a comma.
|
101
|
-
#
|
101
|
+
#
|
102
102
|
# e.g.
|
103
103
|
# configuration.tags="one,two, three"
|
104
104
|
# #=> ["one", "two", "three"]
|
105
|
-
#
|
105
|
+
#
|
106
106
|
# param [String | Array<String>] taglist a list of tags to set
|
107
107
|
def attributes=(attrlist)
|
108
108
|
if attrlist.is_a?(String)
|
109
109
|
@attributes = attrlist.split(',').map(&:strip)
|
110
110
|
elsif attrlist.is_a?(Array)
|
111
111
|
@attributes = attrlist
|
112
|
-
else
|
112
|
+
else
|
113
113
|
@attributes = []
|
114
114
|
end
|
115
115
|
attributes
|
@@ -129,10 +129,18 @@ module ParallelReportPortal
|
|
129
129
|
.then { |fn| fn ? File.read(fn) : '' }
|
130
130
|
.then { |ys| YAML.safe_load(ys, symbolize_names: true) }
|
131
131
|
.then do |yaml|
|
132
|
+
if yaml
|
133
|
+
yaml.transform_keys! { |key| key.downcase }
|
132
134
|
ATTRIBUTES.each do |attr|
|
133
|
-
|
135
|
+
yaml_key = if yaml.has_key?("rp_#{attr}".to_sym)
|
136
|
+
"rp_#{attr}".to_sym
|
137
|
+
else
|
138
|
+
attr
|
139
|
+
end
|
140
|
+
send(:"#{attr}=", yaml[yaml_key]) if yaml.fetch(yaml_key, nil)
|
134
141
|
end
|
135
142
|
end
|
143
|
+
end
|
136
144
|
end
|
137
145
|
end
|
138
146
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_report_portal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nigel Brookes-Thomas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: appraisal
|
@@ -187,7 +187,7 @@ executables: []
|
|
187
187
|
extensions: []
|
188
188
|
extra_rdoc_files: []
|
189
189
|
files:
|
190
|
-
- ".
|
190
|
+
- ".github/workflows/tests.yml"
|
191
191
|
- ".gitignore"
|
192
192
|
- ".rspec"
|
193
193
|
- Appraisals
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
- !ruby/object:Gem::Version
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
237
|
+
rubygems_version: 3.2.22
|
238
238
|
signing_key:
|
239
239
|
specification_version: 4
|
240
240
|
summary: Run Cucumber Tests in parallel and with Cucumber 3 and 4+
|
data/.drone.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
kind: pipeline
|
2
|
-
name: default
|
3
|
-
|
4
|
-
platform:
|
5
|
-
os: linux
|
6
|
-
arch: amd64
|
7
|
-
|
8
|
-
steps:
|
9
|
-
- name: Build & Publish
|
10
|
-
pull: if-not-exists
|
11
|
-
image: 714782054810.dkr.ecr.eu-west-2.amazonaws.com/base-images/qe-ruby:2.7.0
|
12
|
-
commands:
|
13
|
-
- apk add --update git --update alpine-sdk --no-cache
|
14
|
-
- gem install bundler
|
15
|
-
- bundle
|
16
|
-
- gem install nexus
|
17
|
-
- gem build parallel_report_portal.gemspec
|
18
|
-
- gem nexus --url https://nexus.tooling.dvla.gov.uk/repository/gem-private/ parallel_report_portal*gem
|
19
|
-
when:
|
20
|
-
branch:
|
21
|
-
- master
|