test-unit-launchable 0.1.1 → 0.1.3
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 +21 -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: aa23dc4869b567ab9fed6cb74a1d3b7d1812e3051245b2b8f3554e94d66104b7
|
4
|
+
data.tar.gz: 3a360707262b2a5d1c0622376e80dccd41f43501dfa421ebe25cead17c332847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28910c1d33e460e7368c8e89c29452de2aeae451a8ac77edd2b2eb136b5605446b9c9293af95a4365ee6faaefe8d086ea138b1a3562b00349fefbaf6b97d117
|
7
|
+
data.tar.gz: 991daa75c5f36da70740014b2d1d16b3fba496732f05fb7f60c24e0a40ed94c32ac18b47b3e1dbcce22a576a5ac05114cb9a568d485afe635c58d473bd3af6ab
|
@@ -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,20 @@ module Test
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def test_path
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
79
|
+
[
|
80
|
+
{
|
81
|
+
"type": "file",
|
82
|
+
"name": @source_location
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"type": "class",
|
86
|
+
"name": @class_name
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"type": "testcase",
|
90
|
+
"name": @method_name
|
91
|
+
}
|
92
|
+
]
|
86
93
|
end
|
87
94
|
end
|
88
95
|
|
@@ -291,16 +298,8 @@ module Test
|
|
291
298
|
else
|
292
299
|
write_comma
|
293
300
|
end
|
294
|
-
# @file.puts
|
295
|
-
# @indent += 2
|
296
|
-
# write_indent
|
297
|
-
# @file.puts("{")
|
298
301
|
writer = TestCaseWriter.new(@file, @indent)
|
299
302
|
yield writer
|
300
|
-
# @file.puts
|
301
|
-
# write_indent
|
302
|
-
# @file.write("}")
|
303
|
-
# @indent -= 2
|
304
303
|
writer.close
|
305
304
|
end
|
306
305
|
|