spectre-reporter-vstest 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spectre/reporter/vstest.rb +11 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b5c5eafd6250429ad3870c2f7c368a3003598eb41d5a15aeb6da86a85f947d
|
4
|
+
data.tar.gz: dff40d75afe0383508e40f9b483ec948682097c5c70c311872e7d1e612e97233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 837cb12fe4eb03215560c7f4879d3b7fc034a8e26cadcc977d30d494a550b3042f64cdc69f0ca7aae97cd30671b98c8b3014f453b1c0e948f06d09d2e3d41403
|
7
|
+
data.tar.gz: 8659518097e0b838045ffe8e4e2efca930d15ae672956711f70ce6badb37d8365e01e730c223e47ac13b034d8dae459397d85f2c209baf57974441fa46c52082
|
@@ -1,14 +1,14 @@
|
|
1
1
|
require 'cgi'
|
2
2
|
require 'socket'
|
3
3
|
require 'securerandom'
|
4
|
+
require 'spectre'
|
5
|
+
require 'spectre/reporter'
|
4
6
|
|
5
7
|
# Azure mappings: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=trx%2Cyaml
|
6
8
|
|
7
9
|
module Spectre
|
8
10
|
module Reporter
|
9
11
|
class VSTest
|
10
|
-
VERSION = '1.0.1'
|
11
|
-
|
12
12
|
def initialize config
|
13
13
|
@config = config
|
14
14
|
@date_format = '%FT%T.%L'
|
@@ -96,7 +96,11 @@ module Spectre
|
|
96
96
|
end
|
97
97
|
|
98
98
|
run_info.log.each do |timestamp, message, level, name|
|
99
|
-
|
99
|
+
log_text = message.to_s
|
100
|
+
.force_encoding("ISO-8859-1")
|
101
|
+
.encode("UTF-8")
|
102
|
+
|
103
|
+
log_str += %{#{timestamp.strftime(@date_format)} #{level.to_s.upcase} -- #{name}: #{CGI::escapeHTML(log_text)}\n}
|
100
104
|
end
|
101
105
|
|
102
106
|
xml_str += log_str
|
@@ -166,6 +170,10 @@ module Spectre
|
|
166
170
|
run_name += " #{run_info.spec.desc}"
|
167
171
|
run_name
|
168
172
|
end
|
173
|
+
|
174
|
+
Spectre.register do |config|
|
175
|
+
Spectre::Reporter.add VSTest.new(config)
|
176
|
+
end
|
169
177
|
end
|
170
178
|
end
|
171
179
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectre-reporter-vstest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Neubauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spectre-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.14.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.14.3
|
27
27
|
description: Writes a VSTest report for spectre test run, which can be used in Azure
|
28
28
|
DevOps
|
29
29
|
email:
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
|
-
rubygems_version: 3.3.
|
58
|
+
rubygems_version: 3.3.26
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: A VSTest reporter for spectre
|