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 unit testing fails #14

Open
houstonhaynes opened this issue Feb 14, 2025 · 0 comments
Open

Parallel unit testing fails #14

houstonhaynes opened this issue Feb 14, 2025 · 0 comments

Comments

@houstonhaynes
Copy link
Collaborator

Parallel unit testing fails

Issue #276 | Created by @gbaydin | 2021-02-22 02:11:42 UTC |

I have seen some tests fail when I add the attribute [<Parallelizable(ParallelScope.All)>] to all tests (docs here: https://docs.nunit.org/articles/nunit/writing-tests/attributes/parallelizable.html ).

I haven't confirmed this yet, but I suspect that the failure is because of a lack of thread safety in things like dsharp.config, dsharp.seed, etc. and perhaps due to the ComboInfo testing mechanism. It would be good to check the reasons and make the tests run in parallel.


Comment by @dsyme | 2021-02-22 16:01:18 UTC

I reckon this is expected - there are some tests which explicitly test the setting and resetting of the global configurations.

I think we need those tests, so I guess the solution would be to set Parallelizable and explicitly mark some tests as non-parallelizable.

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

1 participant