grntest 1.6.2 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +18 -0
- data/lib/grntest/executors/base-executor.rb +2 -0
- data/lib/grntest/reporters/base-reporter.rb +7 -1
- data/lib/grntest/test-runner.rb +11 -4
- data/lib/grntest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce455333ded86e81b262c5bb46ffd1d712b08a6d15135aa18f39a52e2258f6e
|
4
|
+
data.tar.gz: 26324018775c7543a54d3caeac5ff782799182c76fb591e9cf50ad0532e33340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3869551fa9869d793f80dca800ca9fb6396a2c26abd0cd414eec6dbd79456dbbffc305732fc53cb55b1ae7f424bf9602d5ffec6d2a28a827d9be14bfd6ee8c59
|
7
|
+
data.tar.gz: 6ec7b1118ffd8e70f3d044b10a5f3704b2c5811cda23da8eab23c8df37356b35fb1a4e6b994958705035dcb01afbbff46f5ba83840fd64172bdbea807b42b6e9
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.6.4: 2023-10-21
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* arrow: Added support for metadata normalization.
|
8
|
+
|
9
|
+
## 1.6.3: 2023-09-18
|
10
|
+
|
11
|
+
### Improvements
|
12
|
+
|
13
|
+
* reporter: stream: Changed to show worker ID for each test.
|
14
|
+
|
15
|
+
* Added support for backtrace pattern provided by mruby 3.2.0.
|
16
|
+
|
17
|
+
### Fixes
|
18
|
+
|
19
|
+
* reporter: stream: Fixed a bug that worker ID isn't outputted.
|
20
|
+
|
3
21
|
## 1.6.2: 2023-08-24
|
4
22
|
|
5
23
|
### Improvements
|
@@ -128,13 +128,19 @@ module Grntest
|
|
128
128
|
reporter.report
|
129
129
|
end
|
130
130
|
|
131
|
+
def report_worker_id(worker)
|
132
|
+
@worker_id_width ||= (Math.log10(@tester.n_workers) + 1).floor
|
133
|
+
print("[%*d] " % [@worker_id_width, worker.id])
|
134
|
+
end
|
135
|
+
|
131
136
|
def report_full_test_name(worker)
|
137
|
+
report_worker_id(worker) unless single_worker?
|
132
138
|
print("#{worker.suite_name}/#{worker.test_name}")
|
133
139
|
end
|
134
140
|
|
135
141
|
def report_test(worker, result)
|
136
142
|
report_marker(result)
|
137
|
-
|
143
|
+
report_worker_id(worker) unless single_worker?
|
138
144
|
puts(worker.suite_name)
|
139
145
|
print(" #{worker.test_name}")
|
140
146
|
report_test_result(result, worker.status)
|
data/lib/grntest/test-runner.rb
CHANGED
@@ -711,6 +711,14 @@ http {
|
|
711
711
|
case name
|
712
712
|
when "start_time", "elapsed_time"
|
713
713
|
value = 0
|
714
|
+
when "error_message"
|
715
|
+
value = normalize_error_message(value) if value
|
716
|
+
when "error_file"
|
717
|
+
value = normalize_error_file_path(value) if value
|
718
|
+
when "error_line"
|
719
|
+
value = 0 if value
|
720
|
+
when "error_function"
|
721
|
+
value = normalize_error_function(value) if value
|
714
722
|
end
|
715
723
|
normalized_record << value
|
716
724
|
end
|
@@ -727,10 +735,9 @@ http {
|
|
727
735
|
end
|
728
736
|
|
729
737
|
def apache_arrow_metadata?(schema)
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
["return_code", "start_time", "elapsed_time"]
|
738
|
+
metadata = schema.metadata
|
739
|
+
return false if metadata.nil?
|
740
|
+
metadata["GROONGA:data_type"] == "metadata"
|
734
741
|
end
|
735
742
|
|
736
743
|
def normalize_output_xml(content, options)
|
data/lib/grntest/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grntest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: diff-lcs
|