Better trace message for initial hook processing

This commit is contained in:
Michael Miller 2021-01-09 11:33:29 -07:00
parent df096d91aa
commit c4289b82da
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -9,7 +9,7 @@ module Spectator
include Iterable(SpecNode)
group_event before_all do |hooks|
Log.trace { "Processing before_all hooks" }
Log.trace { "Processing before_all hooks for #{self}" }
if (parent = group?)
parent.call_once_before_all
@ -22,7 +22,7 @@ module Spectator
end
group_event after_all do |hooks|
Log.trace { "Processing after_all hooks" }
Log.trace { "Processing after_all hooks for #{self}" }
hooks.each do |hook|
Log.trace { "Invoking hook #{hook}" }
@ -35,7 +35,7 @@ module Spectator
end
example_event before_each do |hooks, example|
Log.trace { "Processing before_each hooks" }
Log.trace { "Processing before_each hooks for #{self}" }
if (parent = group?)
parent.call_before_each(example)
@ -48,7 +48,7 @@ module Spectator
end
example_event after_each do |hooks, example|
Log.trace { "Processing after_each hooks" }
Log.trace { "Processing after_each hooks for #{self}" }
hooks.each do |hook|
Log.trace { "Invoking hook #{hook}" }