function TestPlanner.createPlan(Y,C,O)local J=TestPlan.new(C,O)table.sort(Y,function(Y,C)return Y.pathStringForSorting<C.pathStringForSorting end)for Y,C in ipairs(Y)do J:addRoot(C.path,C.method)end return J end return TestPlanner

function TestPlanner.createPlan(modulesList, testNamePattern, extraEnvironment)
	local plan = TestPlan.new(testNamePattern, extraEnvironment)

	table.sort(modulesList, function(a, b)
		return a.pathStringForSorting < b.pathStringForSorting
	end)

	for _, module in ipairs(modulesList) do
		plan:addRoot(module.path, module.method)
	end

	return plan
end

return TestPlanner
