allure-ruby-adaptor-api 0.6.5 → 0.6.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbcf9513f1152e74b514668813a1bf1ad406ede7
|
4
|
+
data.tar.gz: a11b9d5ac900a4ef87f30d5a592786a43faca9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa4fb1425d70fd1b76926c34d561cc499eee150573089bf813771a5406a701d62291bc582d6af4759159fbe1f6dc94a2547ea00068c23708f85e0b2a1b28422f
|
7
|
+
data.tar.gz: 72636847785b1a7d9dba135d479b01aa93576e0f075af798756963fc887214c5c17fd87d9aea2f87937f6659f3d9dc1ebb4329cec7245d5c5064519502a5a468
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
allure-ruby-adaptor-api (0.6.
|
4
|
+
allure-ruby-adaptor-api (0.6.6)
|
5
5
|
mimemagic
|
6
6
|
nokogiri (~> 1.6.0)
|
7
7
|
uuid
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
systemu (~> 2.6.2)
|
14
14
|
mimemagic (0.2.1)
|
15
15
|
mini_portile (0.6.2)
|
16
|
-
nokogiri (1.6.
|
16
|
+
nokogiri (1.6.6.2)
|
17
17
|
mini_portile (~> 0.6.0)
|
18
18
|
rake (10.3.2)
|
19
19
|
systemu (2.6.4)
|
@@ -140,6 +140,10 @@
|
|
140
140
|
<xs:enumeration value="severity"/>
|
141
141
|
<xs:enumeration value="language"/>
|
142
142
|
<xs:enumeration value="framework"/>
|
143
|
+
<xs:enumeration value="issue"/>
|
144
|
+
<xs:enumeration value="testId"/>
|
145
|
+
<xs:enumeration value="host"/>
|
146
|
+
<xs:enumeration value="thread"/>
|
143
147
|
</xs:restriction>
|
144
148
|
</xs:simpleType>
|
145
149
|
|
@@ -168,4 +172,5 @@
|
|
168
172
|
<xs:enumeration value="html"/>
|
169
173
|
</xs:restriction>
|
170
174
|
</xs:simpleType>
|
175
|
+
|
171
176
|
</xs:schema>
|
@@ -2,6 +2,7 @@ require 'digest'
|
|
2
2
|
require 'mimemagic'
|
3
3
|
require 'nokogiri'
|
4
4
|
require 'uuid'
|
5
|
+
require 'socket'
|
5
6
|
|
6
7
|
module AllureRubyAdaptorApi
|
7
8
|
|
@@ -9,6 +10,7 @@ module AllureRubyAdaptorApi
|
|
9
10
|
class << self
|
10
11
|
attr_accessor :suites
|
11
12
|
MUTEX = Mutex.new
|
13
|
+
HOSTNAME = Socket.gethostname
|
12
14
|
|
13
15
|
def start_suite(suite, labels = {:severity => :normal})
|
14
16
|
init_suites
|
@@ -18,7 +20,7 @@ module AllureRubyAdaptorApi
|
|
18
20
|
:title => suite,
|
19
21
|
:start => timestamp,
|
20
22
|
:tests => {},
|
21
|
-
:labels => labels
|
23
|
+
:labels => add_default_labels(labels)
|
22
24
|
}
|
23
25
|
end
|
24
26
|
end
|
@@ -32,7 +34,7 @@ module AllureRubyAdaptorApi
|
|
32
34
|
:failure => nil,
|
33
35
|
:steps => {},
|
34
36
|
:attachments => [],
|
35
|
-
:labels => labels,
|
37
|
+
:labels => add_default_labels(labels),
|
36
38
|
}
|
37
39
|
end
|
38
40
|
end
|
@@ -167,6 +169,12 @@ module AllureRubyAdaptorApi
|
|
167
169
|
|
168
170
|
private
|
169
171
|
|
172
|
+
def add_default_labels(labels = {})
|
173
|
+
labels[:thread] ||= Thread.current.object_id
|
174
|
+
labels[:host] ||= HOSTNAME
|
175
|
+
labels
|
176
|
+
end
|
177
|
+
|
170
178
|
def config
|
171
179
|
AllureRubyAdaptorApi::Config
|
172
180
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-ruby-adaptor-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Sadykov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -93,7 +93,7 @@ files:
|
|
93
93
|
- Gemfile.lock
|
94
94
|
- LICENSE
|
95
95
|
- README.md
|
96
|
-
- allure-model-1.4.
|
96
|
+
- allure-model-1.4.6.xsd
|
97
97
|
- allure-ruby-adaptor-api.gemspec
|
98
98
|
- lib/allure-ruby-adaptor-api.rb
|
99
99
|
- lib/allure-ruby-adaptor-api/builder.rb
|
@@ -123,6 +123,6 @@ rubyforge_project:
|
|
123
123
|
rubygems_version: 2.0.3
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
|
-
summary: allure-ruby-adaptor-api-0.6.
|
126
|
+
summary: allure-ruby-adaptor-api-0.6.6
|
127
127
|
test_files: []
|
128
128
|
has_rdoc:
|