NewLife/X

统一测试并发控制,移除 xunit.runner.ci.json

将 xUnit 并行线程数配置迁移到 CI 环境变量(XUNIT_MAX_PARALLEL_THREADS: 1),删除原有 xunit.runner.ci.json 配置文件,实现测试并发度统一由 CI 管控。
石头 authored at 2026-06-22 18:21:27
3d7e6c3
Tree
1 Parent(s) 50f529c
Summary: 2 changed files with 2 additions and 9 deletions.
Modified +2 -0
Deleted +0 -9
XUnitTest.Core/xunit.runner.ci.json
Modified +2 -0
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 2ca9f9e..005409f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -26,6 +26,8 @@ jobs:
       run: |
         dotnet build -c Release
     - name: Test
+      env:
+        XUNIT_MAX_PARALLEL_THREADS: 1
       run: |
         dotnet test -f net8.0
         dotnet test -f net9.0
Deleted +0 -9
XUnitTest.Core/xunit.runner.ci.json