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

Parallel execution does not work between classes #17

Open
penkejk opened this issue Mar 29, 2022 · 3 comments
Open

Parallel execution does not work between classes #17

penkejk opened this issue Mar 29, 2022 · 3 comments

Comments

@penkejk
Copy link

penkejk commented Mar 29, 2022

Hi,
I have noticed after adding dependency injection constructor I can only run in parallel tests that are contained in a single class. Separate classes "await" till currently ran class is over and kick in. Is this something done on purpose?

@kalebpederson
Copy link
Owner

Per the NUnit docs:

The ParallelizableAttribute is used to indicate that a test and/or its descendants may be run in parallel with other tests. By default, no parallel execution takes place.

The dependency injection components do not do anything specific to change parallelization. It's possible the NUnit internals look for an exact match on an attribute (which is what is subclassed by the dependency injection support) but I'm not certain.

Can you describe the approach you're using to run the tests in parallel?

@penkejk
Copy link
Author

penkejk commented Mar 30, 2022 via email

@Igormm
Copy link

Igormm commented Jul 29, 2022

My version di is work with parallels

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

3 participants