grntest 1.6.7 → 1.6.8
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 +7 -0
- data/lib/grntest/reporters/benchmark-json-reporter.rb +8 -2
- 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: f4c390d442cedfaff26e03d35e62f35c2958146f7bea7a8a2e6257004fc38338
|
4
|
+
data.tar.gz: 24bbae078beddc9704797ee722e34480d1724fa0f9a494007f1967fb7e0199d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8e9f5d58cde904e3673cbe778849f2ff902bf21739d6a361e4121a775faeec1ce4bd1bb0a8f3420f64c6ebcbd379db10253aa99e9a0cdcee33950e5d896fd7
|
7
|
+
data.tar.gz: 33bd84602a4c5715e8cffdbcf72ef1efb2320881fe206dba457f229a457864592b7dc8544efaeadb3bf42cd614786fbe158217cfbeedf53079618c2bffecd43a
|
data/doc/text/news.md
CHANGED
@@ -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)
|
@@ -83,7 +89,7 @@ module Grntest
|
|
83
89
|
"real_time": #{benchmark.real_elapsed_time},
|
84
90
|
"cpu_time": #{benchmark.cpu_elapsed_time},
|
85
91
|
"time_unit": "s",
|
86
|
-
"items_per_second": #{benchmark.items_per_second}
|
92
|
+
"items_per_second": #{benchmark.items_per_second}
|
87
93
|
}
|
88
94
|
JSON
|
89
95
|
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.8"
|
18
18
|
end
|