Skip to content

Commit

Permalink
Match top-level tests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Nov 29, 2024
1 parent a144124 commit 4dccfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion busted/modules/filter_loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4dccfbb

Please sign in to comment.