plan = nelson.unittest.plan(suite)
plan = nelson.unittest.plan(suite, Name, Value)
| 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. |
| Parameter | Description |
|---|---|
| plan | TestPlan structure containing cases, workers, shard, order, and resource groups. |
nelson.unittest.plan prepares selected cases for execution.
Benchmarks and tests that require sequential execution are separated from tests that can run in parallel.
plan = nelson.unittest.plan(suite, 'Workers', 4, 'ShardIndex', 1, 'ShardCount', 2);