File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,21 @@ def finish(exception)
54
54
55
55
@recordings_by_test = { }
56
56
@event_methods = Set . new
57
+ @recording_count = 0
57
58
58
59
class << self
59
60
def init
60
- warn 'Configuring AppMap recorder for Minitest'
61
-
62
61
FileUtils . mkdir_p APPMAP_OUTPUT_DIR
63
62
end
64
63
64
+ def first_recording?
65
+ @recording_count == 0
66
+ end
67
+
65
68
def begin_test ( test , name )
69
+ AppMap . info 'Configuring AppMap recorder for Minitest' if first_recording?
70
+ @recording_count += 1
71
+
66
72
@recordings_by_test [ test . object_id ] = Recording . new ( test , name )
67
73
end
68
74
Original file line number Diff line number Diff line change @@ -139,15 +139,21 @@ def finish(exception)
139
139
140
140
@recordings_by_example = { }
141
141
@event_methods = Set . new
142
+ @recording_count = 0
142
143
143
144
class << self
144
145
def init
145
- warn 'Configuring AppMap recorder for RSpec'
146
-
147
146
FileUtils . mkdir_p APPMAP_OUTPUT_DIR
148
147
end
149
148
149
+ def first_recording?
150
+ @recording_count == 0
151
+ end
152
+
150
153
def begin_spec ( example )
154
+ AppMap . info 'Configuring AppMap recorder for RSpec' if first_recording?
155
+ @recording_count += 1
156
+
151
157
@recordings_by_example [ example . object_id ] = Recording . new ( example )
152
158
end
153
159
You can’t perform that action at this time.
0 commit comments