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

Limit max parallel tests in Force mode #128

Open
abakumovoleg opened this issue Aug 15, 2024 · 3 comments
Open

Limit max parallel tests in Force mode #128

abakumovoleg opened this issue Aug 15, 2024 · 3 comments

Comments

@abakumovoleg
Copy link

Hi, is it possible to limit max parallel test execution with Force flag?

@pengweiqhca
Copy link
Owner

Please see xunit Running Tests in Parallel Algorithms.

  • conservative, just control the number of parallel test cases.
  • aggressive, control SynchronizationContext, not only test cases, but also test case's task.

So, I suggest choosing aggressive, but I didn't confirm that.

@abakumovoleg
Copy link
Author

Maybe I don't understand something but I tried both options and it doesn't work as I expected. It only allows to constraint max parallel threads, not tests or test methods. It works only for non async tests.

@pengweiqhca
Copy link
Owner

Maybe you can get some inspiration from my Parallelization test code and MaxParallelThreads config.

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