-
Notifications
You must be signed in to change notification settings - Fork 38
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
Multi-threading for python #121
Comments
This feature would be beneficial for testing embedded systems. Without the ability to use multi-threading for parallel execution we are severely limited to the number of tests we can run at a time. We run regression testing on 12+ control boards at a time from one computer and it looks like this is currently not possible if using python. |
I am facing the same issue, I have 240 test cases and it takes 6+ hours to run cause I can use parallel execution |
Since python(cPython implementation) multithreading does not allow to run more than one thread at a time, we will not be able to utilise the full capacity of CPU cores. And thus not very suitable for computationally intensive processes. Refer for more discussions. Currently gauge-python spawns multiple process based on CPU cores available to parallelise the execution. @AkaAnto have you tried running specs in parallel ? |
I have with no luck, process spawns but I am facing a race condition. I am currently working on making all of my code thread safe to give it another try. I ll let you know how it goes |
I was able to run test in parallel @NivedhaSenthil. Race condition arise from time to time when using more than 3 process. This is a known bug for python 2.7. In a non related issue, any hook or way of knowing when all suites/test finished running ? |
|
Currently parallel execution using multi-threading for python is unsupported. Would like to see this supported in python as outlined in the 'parallel execution using threads' part of documentation:
The text was updated successfully, but these errors were encountered: