Support for custom shardStrategy
tomastrajan opened this issue · comments
It would be amazing if there would be a way to pass in function that follows the same API as currently existing
description-length strategy so that we can customize how we want to separate tests.
Eg in legacy Angular / AngularJS portal there are different types of tests:
- AngularJS typescript
- Angular typescript
Also there are tests for multiple applications so it would be great if I could run them together (eg based on regexp for the path /src/applications/app1)
Would this be possible?
I have added support for a custom shard strategy function that you can configure in the karma conf. It will run for each top-level describe block and it is expected to return true or false to determine if the describe block should run in the current executor instance. Please read the notes in the README for more info.