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

Issues while using in parallel test #7

Open
pascalberger opened this issue Jul 14, 2020 · 2 comments
Open

Issues while using in parallel test #7

pascalberger opened this issue Jul 14, 2020 · 2 comments

Comments

@pascalberger
Copy link
Contributor

Using Gazorator in XUnit test cases leads and running from Visual Studio Test Explorer as part of cake-contrib/Cake.Issues.Reporting.Generic#276 leads to Visual Studio being blocked. Running single test cases work, but running multiple test with XUnit default settings, which runs them in parallel doesn't work.

Forcing XUnit to run tests sequentually works around the issue:

[assembly: CollectionBehavior(DisableTestParallelization = true)]
@gep13
Copy link
Collaborator

gep13 commented Jul 14, 2020

@pascalberger this isn't any sort of deadlock issue with the way that we were calling GetAwaiter().GetResult() is it?

@bjorkstromm
Copy link
Owner

@pascalberger this isn't any sort of deadlock issue with the way that we were calling GetAwaiter().GetResult() is it?

Shouldn't be a problem. Will need to check if this is an issue I can do anything about, or if it's in Razor or Roslyn Scripting. I'll set up some unit tests and see. Until then, disable parallelization.

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