Skip to content

Commit

Permalink
fix(TAP-output): error if no test files (lunarmodules#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo authored Oct 24, 2023
1 parent e5e6691 commit 95a7b9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion busted/outputHandlers/TAP.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ return function(options)
end

print(string_format(failure, counter, t.name))
print('# ' .. t.element.trace.short_src .. ' @ ' .. t.element.trace.currentline)
if t.element.trace.short_src then
print('# ' .. t.element.trace.short_src .. ' @ ' .. t.element.trace.currentline)
end
if t.randomseed then
print('# Random seed: ' .. t.randomseed)
end
Expand Down

0 comments on commit 95a7b9e

Please sign in to comment.