See xunit/visualstudio.xunit#189
Fix is to set xunit.runner.json to Copy On Newer:

(Adding this to UnitTests.csproj:
<ItemGroup>
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
We can remove this line from ./UnitTests/AssemblyInfo.cs (it WAS what was preventing tests from running in parallel, but is no longer needed if xunit.runner.json is working):
// Since Application is a singleton we can't run tests in parallel
[assembly: CollectionBehavior (DisableTestParallelization = true)]
Once this is done, stopOnFail can be enabled by adding "stopOnFail": true to xunit.runner.json.
I'd like to know if anyone has an objection to setting stopOnFail to true. I'd DEF want this for CI/CD, but am not sure if I like it for dev work.
See xunit/visualstudio.xunit#189
Fix is to set
xunit.runner.jsonto Copy On Newer:(Adding this to
UnitTests.csproj:We can remove this line from
./UnitTests/AssemblyInfo.cs(it WAS what was preventing tests from running in parallel, but is no longer needed ifxunit.runner.jsonis working):Once this is done, stopOnFail can be enabled by adding
"stopOnFail": truetoxunit.runner.json.I'd like to know if anyone has an objection to setting
stopOnFailto true. I'd DEF want this for CI/CD, but am not sure if I like it for dev work.