Support better control of the test batch size
WE have some tests that require a large start up time in the BeforeTestRun. In these tests we start a browser and then run all the tests in the batch in the browser sequentially. When NCrunch uses small batches this makes the tests runs very long as the overhead of the startup outweighs the test run time.
I think an option to control the batch size would help. I can see two options:
An attribute: this could work like the Atomic attribute, except that rather than running all the tests together, it would put all those tests in the same batch
A config option to allow a batch size hint. This could be as simple as an option for minimal number of batches, which would force NCrunch to queue the tests that need queuing in the smallest number of batches based on the number of processing threads. if there are 5 processing threads and 75 tests then each batch would have 15 tests in it.
Another option could be to have a batch size hint, which NCrunch could use to set the number of tests in a batch, if possible
A config option would be my preferred solution I think as the attribute wouldn't be effective if trying to rerun failed tests across several features