ruby_ci 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_ci/rspec_run_formatter.rb +6 -0
- data/lib/ruby_ci/version.rb +1 -1
- 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: 1ad35fe30f8c4e72703b0ab13fb95996d76cb291955c2401c863f159e06ebea0
|
4
|
+
data.tar.gz: 06e89200e0e82e5f7c4c0dd1c2204c5fa63f13f07505f549799f6cfdbbe94326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc9c4580c9a8b021546ad8b638583ebb18af22ed695ff54c2f378b839257404eab73a31ce6756d6205ea2135d897abbd219cf3807424eb6458860174b4a7911
|
7
|
+
data.tar.gz: 8ce9828e871bc0fc185b6a0040e336f8e520e8b813a73166e0c00d91bf70b9cb401399849d84521674e13e63a5c334b7311e2d173af8ba6fa07cc70092f3b6c5
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require "stringio"
|
2
3
|
|
3
4
|
module RubyCI
|
4
5
|
class RspecRunFormatter
|
@@ -70,6 +71,7 @@ module RubyCI
|
|
70
71
|
end
|
71
72
|
|
72
73
|
def start(start_notification)
|
74
|
+
@output.print "Starting rspec run"
|
73
75
|
# $stderr = $stdout
|
74
76
|
|
75
77
|
data = {
|
@@ -86,6 +88,7 @@ module RubyCI
|
|
86
88
|
end
|
87
89
|
|
88
90
|
def close(null_notification)
|
91
|
+
@output.print "Finished rspec run"
|
89
92
|
# check_heap_live_num
|
90
93
|
msg(:gc_stat, GC.stat.merge(max_heap_live_num: @max_heap_live_num))
|
91
94
|
unless running_only_failed? || ENV["EXTRA_SLOWER_RUN"] || running_gem_or_engine?
|
@@ -124,6 +127,7 @@ module RubyCI
|
|
124
127
|
def example_passed(example_notification)
|
125
128
|
metadata = example_notification.example.metadata
|
126
129
|
broadcast_example_finished(serialize_example(metadata, "passed".freeze), example_notification.example)
|
130
|
+
@output.print RSpec::Core::Formatters::ConsoleCodes.wrap('.', :success)
|
127
131
|
end
|
128
132
|
|
129
133
|
def example_failed(example_notification)
|
@@ -135,6 +139,7 @@ module RubyCI
|
|
135
139
|
serialize_example(metadata, "failed".freeze, fully_formatted),
|
136
140
|
example_notification.example
|
137
141
|
)
|
142
|
+
@output.print RSpec::Core::Formatters::ConsoleCodes.wrap('F', :failure)
|
138
143
|
end
|
139
144
|
|
140
145
|
def example_pending(example_notification)
|
@@ -143,6 +148,7 @@ module RubyCI
|
|
143
148
|
serialize_example(metadata, "pending".freeze),
|
144
149
|
example_notification.example
|
145
150
|
)
|
151
|
+
@output.print RSpec::Core::Formatters::ConsoleCodes.wrap('*', :pending)
|
146
152
|
end
|
147
153
|
|
148
154
|
def example_group_finished(group_notification)
|
data/lib/ruby_ci/version.rb
CHANGED