bjorkstromm / gazorator

MIT License
31 stars 9 forks source link

Issues while using in parallel test #7

Open pascalberger opened 4 years ago

pascalberger commented 4 years ago

Using Gazorator in XUnit test cases leads and running from Visual Studio Test Explorer as part of https://github.com/cake-contrib/Cake.Issues.Reporting.Generic/pull/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 commented 4 years ago

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

bjorkstromm commented 4 years ago

@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.