grntest 1.6.7 → 1.6.9
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/doc/text/news.md +13 -0
- data/lib/grntest/reporters/benchmark-json-reporter.rb +10 -3
- data/lib/grntest/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 874f9b46d80e926dac44a36947f89cb2f8fee99a1e00ae1063b5e3d79b07d706
|
4
|
+
data.tar.gz: 44643f5dc0b404cbfde294a218f19a0251afef70c01ae6d8a9ab3130556af3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b411cbd6573214a097ca372a9e0a810b81c485dd4a241030996f3030561082a82939f278417ec2eb213e64505a9dab4c693130403ee30c557cc73b58f9915e
|
7
|
+
data.tar.gz: 7ae1e11e823be0eda76acc7e0af1f11d168e2859287c4cfb435ffd69b0dd034a6065befab670997972eca56dbb1d769e8756705edc505bb51a3cf42f6e8a8abd
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.6.9: 2024-02-05
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* reporter: benchmark-json: Added a test suite name to benchmark name.
|
8
|
+
|
9
|
+
## 1.6.8: 2024-02-05
|
10
|
+
|
11
|
+
### Fixes
|
12
|
+
|
13
|
+
* reporter: benchmark-json: Fixed a bug that invalid JSON is
|
14
|
+
generated.
|
15
|
+
|
3
16
|
## 1.6.7: 2024-02-05
|
4
17
|
|
5
18
|
### Improvements
|
@@ -28,7 +28,7 @@ module Grntest
|
|
28
28
|
def on_start(result)
|
29
29
|
puts(<<-JSON)
|
30
30
|
{
|
31
|
-
"context": {
|
31
|
+
"context": {
|
32
32
|
"date": #{Time.now.iso8601.to_json},
|
33
33
|
"host_name": #{Socket.gethostname.to_json},
|
34
34
|
"executable": #{@tester.testee.to_json},
|
@@ -60,6 +60,12 @@ module Grntest
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def on_test_failure(worker, result)
|
63
|
+
output, @output = @output, $stderr
|
64
|
+
begin
|
65
|
+
report_failure(result)
|
66
|
+
ensure
|
67
|
+
@output = output
|
68
|
+
end
|
63
69
|
end
|
64
70
|
|
65
71
|
def on_test_leak(worker, result)
|
@@ -74,16 +80,17 @@ module Grntest
|
|
74
80
|
def on_test_finish(worker, result)
|
75
81
|
return if result.benchmarks.empty?
|
76
82
|
benchmarks = result.benchmarks.collect do |benchmark|
|
83
|
+
name = "#{worker.suite_name}/#{result.test_name}"
|
77
84
|
<<-JSON.chomp
|
78
85
|
{
|
79
|
-
"name": #{
|
86
|
+
"name": #{name.to_json},
|
80
87
|
"run_name": #{benchmark.name.to_json},
|
81
88
|
"run_type": "iteration",
|
82
89
|
"iterations": #{benchmark.n_iterations},
|
83
90
|
"real_time": #{benchmark.real_elapsed_time},
|
84
91
|
"cpu_time": #{benchmark.cpu_elapsed_time},
|
85
92
|
"time_unit": "s",
|
86
|
-
"items_per_second": #{benchmark.items_per_second}
|
93
|
+
"items_per_second": #{benchmark.items_per_second}
|
87
94
|
}
|
88
95
|
JSON
|
89
96
|
end
|
data/lib/grntest/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012-
|
1
|
+
# Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This program is free software: you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -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.
|
17
|
+
VERSION = "1.6.9"
|
18
18
|
end
|