From 74bd28bbd05bf983c741e902731ea2778826982d Mon Sep 17 00:00:00 2001 From: DHR60 <192860629+DHR60@users.noreply.github.com> Date: Sat, 22 Aug 2026 02:25:57 +0000 Subject: [PATCH] Fix test (#10007) --- .github/workflows/test.yml | 5 ++--- global.json | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4dcddab6..cfd621d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,12 +30,11 @@ jobs: dotnet-quality: 'ga' - name: Test Code - working-directory: ./v2rayN - run: dotnet test ./ServiceLib.Tests -c Release --no-build --results-directory ./TestResults -- --report-trx + run: dotnet test --project ./v2rayN/ServiceLib.Tests -c Release --results-directory ./TestResults -- --report-trx - name: Comment PR with results if: always() uses: EnricoMi/publish-unit-test-result-action@v2 with: - files: ./v2rayN/TestResults/*.trx + files: ./TestResults/*.trx comment_mode: failures diff --git a/global.json b/global.json new file mode 100644 index 00000000..802ab217 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "test": { + "runner": "Microsoft.Testing.Platform" + } +} \ No newline at end of file