소스 검색

xunit.runner.json now actually works

Tigger Kindel 2 년 전
부모
커밋
7387761a4f
3개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 4
      UnitTests/AssemblyInfo.cs
  2. 5 0
      UnitTests/UnitTests.csproj
  3. 2 1
      UnitTests/xunit.runner.json

+ 0 - 4
UnitTests/AssemblyInfo.cs

@@ -3,7 +3,3 @@ using System.Diagnostics;
 using System.Reflection;
 using Terminal.Gui;
 using Xunit;
-
-// Since Application is a singleton we can't run tests in parallel
-[assembly: CollectionBehavior (DisableTestParallelization = true)]
-

+ 5 - 0
UnitTests/UnitTests.csproj

@@ -38,6 +38,11 @@
     <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
     <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
   </ItemGroup>
+  <ItemGroup>
+    <None Update="xunit.runner.json">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
+  </ItemGroup>
   <PropertyGroup Label="FineCodeCoverage">
     <Enabled>
       True

+ 2 - 1
UnitTests/xunit.runner.json

@@ -1,5 +1,6 @@
 {
   "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
   "parallelizeTestCollections": false,
-  "parallelizeAssembly": false
+  "parallelizeAssembly": false,
+  "stopOnFail": false
 }