@@ -143,6 +143,7 @@ local function start_test(item)
143
143
run_tests_in_seperate_process ()
144
144
end
145
145
146
+ -- test_started event is published by the runner process for each started test
146
147
on_event (" test_started" , function (e )
147
148
if e ._from != runner_pid then
148
149
-- discard events from old runners
@@ -159,6 +160,7 @@ on_event("test_started", function(e)
159
160
sfx (1 )
160
161
end )
161
162
163
+ -- test_finished event is published by the runner process for each started test
162
164
on_event (" test_finished" , function (e )
163
165
if e ._from != runner_pid then
164
166
-- discard events from old runners
@@ -236,6 +238,8 @@ on_event("test_finished", function(e)
236
238
-- update text for all parents
237
239
end )
238
240
241
+ -- print event is published by the runner process for each print command
242
+ -- executed by test
239
243
on_event (" print" , function (e )
240
244
if e ._from != runner_pid then
241
245
-- discard events from old runners
@@ -245,6 +249,7 @@ on_event("print", function(e)
245
249
printed_lines :print (e .test .id , e .text )
246
250
end )
247
251
252
+ -- done event is published by the runner process when all test have finished
248
253
on_event (" done" , function (e )
249
254
if e ._from != runner_pid then
250
255
-- discard events from old runners
0 commit comments