microsoft / testfx

MSTest framework and adapter
MIT License
716 stars 253 forks source link

[Parallel] Tests should be run in STA by default #320

Closed AbhitejJohn closed 6 months ago

AbhitejJohn commented 6 years ago

Description

Tests running with in-assembly-parallelization run by default in MTA where-as the default for a non-parallelized run is STA. We would want this default to be the same irrespective of a parallel run.

Workaround

A user can add an STATestClass/STATestMethod to ensure their tests requiring STA run in it. These attributes are part of MSTest.STAExtensions

Evangelink commented 6 months ago

We will fix running in STA/MTA but not in this way.