Skip to content

How xdist according to the test file allocation process? #193

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

Closed
linlin547 opened this issue Jul 27, 2017 · 10 comments
Closed

How xdist according to the test file allocation process? #193

linlin547 opened this issue Jul 27, 2017 · 10 comments
Labels

Comments

@linlin547
Copy link

linlin547 commented Jul 27, 2017

Hello, my English is very poor, I want to use xdist allocation process, not according to the distribution of the test method, Need a process distribution a test file, what should I do?Thank you very much.

@RonnyPfannschmidt
Copy link
Member

with your question, i dont see a good way to answer since you didnt even remotely outline your use-case

your English skill is indeed a major communication blocker there

@linlin547
Copy link
Author

How are you I want to use xdist plug-in distribution test files, a process to distribute a test file, instead of distribution according to the amount of test method, what should I do?Thank you very much.

@RonnyPfannschmidt
Copy link
Member

@linlin547 again, if i cant make sense of your question, i cant hope to help, if your own English is too bad please get help from someone with better English skills,

else i will have to close this issue as not actionable due to language barrier

@nicoddemus
Copy link
Member

I'm going on a limb here, but perhaps @linlin547 means that he wants to distribute the tests to workers grouped by test module instead of by individual tests sent to each worker individually? @linlin547 can you confirm? If that's the case, there's #191 going on to fit exactly that.

@linlin547
Copy link
Author

all methods execute in a same thread from a same file .

@linlin547
Copy link
Author

execute tests group by class in a same thread @RonnyPfannschmidt @nicoddemus

@linlin547
Copy link
Author

@nicoddemus
Copy link
Member

Thanks for finding an example demonstrating your problem. As I said there's work regarding this on #191. I recommend to watch that issue closely. 👍

Closing this for now.

@linlin547
Copy link
Author

example :
1.I have three test files, they are test1,test2,test3
2.now pytest.ini addopts= -n 3
3.I hope thread1 run test1 file,thread2 run test2 file,thread3 run test3 file

@RonnyPfannschmidt @nicoddemus

@nicoddemus
Copy link
Member

Yep it's clear now.

The short answer is: that can't be done right now, but there's work being done in #191.

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

No branches or pull requests

3 participants