function TestSession.calculateTotals(l)local Q=l.results Q.successCount=0 Q.failureCount=0 Q.skippedCount=0 Q:visitAllNodes(function(l)local x=l.status local V=l.planNode.type if V==TestEnum.NodeType.It then if x==TestEnum.TestStatus.Success then Q.successCount=Q.successCount+1 elseif x==TestEnum.TestStatus.Failure then Q.failureCount=Q.failureCount+1 elseif x==TestEnum.TestStatus.Skipped then Q.skippedCount=Q.skippedCount+1 end end end)end

function TestSession:calculateTotals()
	local results = self.results

	results.successCount = 0
	results.failureCount = 0
	results.skippedCount = 0

	results:visitAllNodes(function(node)
		local status = node.status
		local nodeType = node.planNode.type

		if nodeType == TestEnum.NodeType.It then
			if status == TestEnum.TestStatus.Success then
				results.successCount = results.successCount + 1
			elseif status == TestEnum.TestStatus.Failure then
				results.failureCount = results.failureCount + 1
			elseif status == TestEnum.TestStatus.Skipped then
				results.skippedCount = results.skippedCount + 1
			end
		end
	end)
end
