Instead of having one runner do all the work for a test, split it up
into multiple shards so as the number of tests grows, we can add tests
without running out of time on the runners.
The test runner is also moved out of the generator to make it easier to
work on it without having to generate and without having to write the
code in the template.
Updates #21817
Signed-off-by: Claus Lensbøl <[email protected]>