it:ad:xunit:howto:disabletestparallelization:home

IT:AD:XUnit:HowTo:DisableTestParallelization

Summary

XActLib's tests run into trouble when running in parallel. It's because one test is rebuilding a new Inversion of Control Container (ie Unity) and ServiceLocator – by destroying any previous one – while another test was expecting it to be there. A bit of an issue…

One way to solve it is to turn off parallelization.

using XUnit;
...
[assembly: CollectionBehavior(DisableTestParallelization = true)]

  • /home/skysigal/public_html/data/pages/it/ad/xunit/howto/disabletestparallelization/home.txt
  • Last modified: 2023/11/04 02:34
  • by 127.0.0.1