function TestSession.gatherErrors(S)local z=S.results z.errors={}z:visitAllNodes(function(S)if#S.errors>0 then for S,J in ipairs(S.errors)do table.insert(z.errors,J)end end end)end
--[[
	Gathers all of the errors reported by tests and puts them at the top level
	of the TestResults object.
]]
function TestSession:gatherErrors()
	local results = self.results

	results.errors = {}

	results:visitAllNodes(function(node)
		if #node.errors > 0 then
			for _, message in ipairs(node.errors) do
				table.insert(results.errors, message)
			end
		end
	end)
end
