function TestPlanner.createPlan(W,m)local O if type(m)=="\115\116\114\105\110\103"then O={testNamePattern=m}else O=m end local q=TestPlan.new(O)table.sort(W,function(W,m)return W.pathStringForSorting<m.pathStringForSorting end)for W,m in ipairs(W)do q:addRoot(m.path,m.method,m.instance)end return q end return TestPlanner

function TestPlanner.createPlan(modulesList, planArgs)
	local testPlanArgs
	if type(planArgs) == "string" then
		testPlanArgs = { testNamePattern = planArgs }
	else
		testPlanArgs = planArgs
	end

	local plan = TestPlan.new(testPlanArgs)

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

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

	return plan
end

return TestPlanner
