Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom shardStrategy #31

Closed
tomastrajan opened this issue Nov 26, 2018 · 2 comments
Closed

Support for custom shardStrategy #31

tomastrajan opened this issue Nov 26, 2018 · 2 comments

Comments

@tomastrajan
Copy link

It would be amazing if there would be a way to pass in function that follows the same API as currently existing round-robin and 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:

  1. AngularJS javascript
  2. AngularJS typescript
  3. 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?

@joeljeske
Copy link
Owner

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.

@tomastrajan
Copy link
Author

@joeljeske amazing! thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants