-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
test methods within a single test class paralled #2064
Comments
What language are you working with? What test framework? |
@benley I just run test under bazel, using bazel's test command. oh, I am working with java, and spring framework. |
If you're using Bazel's |
@aehlig I set shard_count in my java_test, but it seems to take more time. |
@aehlig The log of one of the sharding:
Does it show that every sharding would start an JVM? Is it the reason why setting shard_count takes more time? |
@aehlig GinFungYJF have provided the messages I have, after I use shard option, the test process takes more time, that's not what I want. |
There's more discussion of sharding in #2113. I'm not sure there are any action items here for us. There may be a junit extension to do multi-threading within a single Jvm, if the Jvm startup overhead is too large for sharding... |
There is an on-going work to make junit test faster to avoid JVM startup time. I don't think we can do more than that. Closing this issue since there is no specific action item for it. |
@damienmg: have you considered using junit's |
No I don't think so, our sharding tooling dates back from JUnit3 where there was no such thing as ParallelComputer. It also has some hermeticity issues. |
We could potentially add support for parallel computer on an opt-in basis as well. Feel free to file a feature request for that. So far we have not looked at that, and it also hasn't been a good match for how our internal systems work. |
@ulfjack I am working on that:) some problems...the spring initializing failed when I import ParallelComputer into bazel. |
is there a way to make bazel test running the methods in a single test class multi-threaded?
The text was updated successfully, but these errors were encountered: