From 5da08f68492c8f159d23b808c51c9898583b6f5a Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 8 Oct 2019 15:16:24 -0700 Subject: [PATCH] Fix multiple roots causing some test modules to be ignored (#56) --- lib/TestBootstrap.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/TestBootstrap.lua b/lib/TestBootstrap.lua index a8267cc..291c293 100644 --- a/lib/TestBootstrap.lua +++ b/lib/TestBootstrap.lua @@ -95,9 +95,13 @@ function TestBootstrap:run(roots, reporter, otherOptions) local startTime = tick() - local modules + local modules = {} for _, subRoot in ipairs(roots) do - modules = self:getModules(subRoot, modules) + local newModules = self:getModules(subRoot) + + for _, newModule in ipairs(newModules) do + table.insert(modules, newModule) + end end local afterModules = tick()