nelson.unittest.plan
Create an execution plan for a test suite.
📝Syntax
plan = nelson.unittest.plan(suite)
plan = nelson.unittest.plan(suite, Name, Value)
📥Input Arguments
Parameter Description
suite TestSuite returned by nelson.unittest.discover or nelson.unittest.select.
Name, Value planning options: Workers, ShardIndex, ShardCount, Shuffle, Seed, and resource policy options.
📤Output Arguments
Parameter Description
plan TestPlan structure containing cases, workers, shard, order, and resource groups.
📄Description

nelson.unittest.plan prepares selected cases for execution.

Benchmarks and tests that require sequential execution are separated from tests that can run in parallel.

💡Examples
plan = nelson.unittest.plan(suite, 'Workers', 4, 'ShardIndex', 1, 'ShardCount', 2);
🔗See Also
nelson.unittest.selectnelson.unittest.run
Edit this page on GitHub