grntest 1.6.2 → 1.6.3

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
  SHA256:
3
- metadata.gz: 738937a2c9b0aaaaca52666b1e473316e8061d723089088a354ba5866b74f09f
4
- data.tar.gz: 130ba969e61ea492878c06fbce47b8d1dbf9eaefcbc1af8d8c34bec99c26b46f
3
+ metadata.gz: aa40165815d080049dd1910a6e417d10c669225e5b151882192181f830e24347
4
+ data.tar.gz: d4c4f85b34059a6d8f4c5ed66e4bc60e7294253dcfd8a0f1fc1dbecb42684912
5
5
  SHA512:
6
- metadata.gz: 65b744a5acd3abcce3904eb9ce012815659f02938987af6e90d449df161725630864c299f47e7ccc0fc8779bd095293459c7a446a55aa50775b96ade2337de01
7
- data.tar.gz: 9af7a26b36f338e4da106dedc330d14a80e30043bd5ef0a8b2c247f8403957d30ad2dde25113a4a61488d2d4ce26f654b4e17de4323373006091d4640a65828c
6
+ metadata.gz: 595dda68c29ddd69b0cdb5b76c96c3471c811e23d1a0f3a13622d5341ad463db65d0d71a21556675d22e56dc087b167fea64f61886abd9e62d0745a8cf157e13
7
+ data.tar.gz: bbdf5697336b6e0a7963e7d6b399624829fd3184bf5971c056292a9ac7f9197e28093c980c231772f323e2f072be9a3ceee87021a22d559ee59ffbe4eac3e80a
data/doc/text/news.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # News
2
2
 
3
+ ## 1.6.3: 2023-09-18
4
+
5
+ ### Improvements
6
+
7
+ * reporter: stream: Changed to show worker ID for each test.
8
+
9
+ * Added support for backtrace pattern provided by mruby 3.2.0.
10
+
11
+ ### Fixes
12
+
13
+ * reporter: stream: Fixed a bug that worker ID isn't outputted.
14
+
3
15
  ## 1.6.2: 2023-08-24
4
16
 
5
17
  ### Improvements
@@ -763,6 +763,8 @@ module Grntest
763
763
  true
764
764
  when /\A[a-zA-Z]:[\/\\]/
765
765
  true
766
+ when "(unknown):0"
767
+ true
766
768
  when /\A\(unknown\):\d+:\d+: /
767
769
  true
768
770
  when /\A[\w.\\-]+:\d+:\d+: /
@@ -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
- print("[#{worker.id}] ") if single_worker?
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)
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.6.2"
17
+ VERSION = "1.6.3"
18
18
  end
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.2
4
+ version: 1.6.3
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-08-24 00:00:00.000000000 Z
12
+ date: 2023-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diff-lcs