test-unit-launchable 0.1.1 → 0.1.2
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/lib/test/unit/launchable/version.rb +1 -1
- data/lib/test/unit/ui/launchable/json/testrunner.rb +19 -22
- 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: 9b39d9aa281ffa5cbf62f3ce263117aadd59782318439075c639167ef3355066
|
4
|
+
data.tar.gz: a9219c7a22e11d2d4d929d5c20da99dbcee73c78b5bc8b549622ced26148957a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3564f43188fd5b2f803fd3aa2c9b3d855a4d950d9adaed5eaf302a9cda455a6342818706fcbe2d3db140e6ecefc0c7ae8265782f115df7fa7cb3197ce631c86
|
7
|
+
data.tar.gz: a5215cb4e955bc9f5d4cb10952452bdb35a0e582e5acce928383b90d95a4d77cbf180c6a4abf61556909573b8b8b52532e8c3768108753beb4d18433c1000776
|
@@ -28,15 +28,15 @@ module Test
|
|
28
28
|
end
|
29
29
|
@mediator.add_listener(::Test::Unit::TestCase::FINISHED_OBJECT) do |test|
|
30
30
|
@curt_test_case.elapsed_time = test.elapsed_time
|
31
|
-
@json_stream_writer.
|
31
|
+
@json_stream_writer.write_test_case do |writer|
|
32
32
|
# The test path is a URL-encoded representation.
|
33
33
|
# https://github.com/launchableinc/cli/blob/v1.81.0/launchable/testpath.py#L18
|
34
|
-
writer.
|
35
|
-
writer.
|
36
|
-
writer.
|
37
|
-
writer.
|
38
|
-
writer.
|
39
|
-
writer.
|
34
|
+
writer.write_test_path_components("testPath", @curt_test_case.test_path)
|
35
|
+
writer.write_duration(@curt_test_case.elapsed_time)
|
36
|
+
writer.write_status(@curt_test_case.status)
|
37
|
+
writer.write_stdout(nil)
|
38
|
+
writer.write_stderr(@curt_test_case.stderr)
|
39
|
+
writer.write_created_at(Time.now.to_s)
|
40
40
|
end
|
41
41
|
@curt_test_case = nil
|
42
42
|
end
|
@@ -76,13 +76,18 @@ module Test
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def test_path
|
79
|
-
{
|
80
|
-
"
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
79
|
+
{
|
80
|
+
"type": "file",
|
81
|
+
"name": @source_location
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"type": "class",
|
85
|
+
"name": @class_name
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"type": "testcase",
|
89
|
+
"name": @method_name
|
90
|
+
}
|
86
91
|
end
|
87
92
|
end
|
88
93
|
|
@@ -291,16 +296,8 @@ module Test
|
|
291
296
|
else
|
292
297
|
write_comma
|
293
298
|
end
|
294
|
-
# @file.puts
|
295
|
-
# @indent += 2
|
296
|
-
# write_indent
|
297
|
-
# @file.puts("{")
|
298
299
|
writer = TestCaseWriter.new(@file, @indent)
|
299
300
|
yield writer
|
300
|
-
# @file.puts
|
301
|
-
# write_indent
|
302
|
-
# @file.write("}")
|
303
|
-
# @indent -= 2
|
304
301
|
writer.close
|
305
302
|
end
|
306
303
|
|