From 4dccfbb57b7ff05dacc9feb689391fabd510addc Mon Sep 17 00:00:00 2001 From: MisanthropicBit Date: Fri, 29 Nov 2024 22:45:16 +0100 Subject: [PATCH] Match top-level tests as well --- busted/modules/filter_loader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/busted/modules/filter_loader.lua b/busted/modules/filter_loader.lua index e5c15182..5fb7fe7e 100644 --- a/busted/modules/filter_loader.lua +++ b/busted/modules/filter_loader.lua @@ -84,7 +84,7 @@ return function() if not (options.suppressPending and status == 'pending') then local fullname = getFullName() local trace = element.trace - if trace and trace.what == 'Lua' then + if trace and (trace.what == 'Lua' or trace.what == 'main') then fullname = trace.short_src .. ':' .. trace.currentline .. ': ' .. fullname end print(fullname)