From 95a7b9ef17651998f77efe5bca54cbebcc2a2463 Mon Sep 17 00:00:00 2001 From: notomo Date: Tue, 24 Oct 2023 20:51:22 +0900 Subject: [PATCH] fix(TAP-output): error if no test files (#731) --- busted/outputHandlers/TAP.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/busted/outputHandlers/TAP.lua b/busted/outputHandlers/TAP.lua index 502cf7fe..7f7c564c 100644 --- a/busted/outputHandlers/TAP.lua +++ b/busted/outputHandlers/TAP.lua @@ -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