From c6641d52ac0f4e576a5d233f3982d6c666a02317 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Mon, 7 Feb 2022 09:39:12 +0100 Subject: [PATCH] Switch to vstest.console (and go back to net6.0 for ics.d.test re:xplat) --- .github/workflows/build-ilspy.yml | 13 ++++++++++--- .../ICSharpCode.Decompiler.Tests.csproj | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-ilspy.yml b/.github/workflows/build-ilspy.yml index 8b0f91e2a..08e191124 100644 --- a/.github/workflows/build-ilspy.yml +++ b/.github/workflows/build-ilspy.yml @@ -38,6 +38,9 @@ jobs: - name: Install dotnet-format run: dotnet tool install dotnet-format --global --version 5.1.225507 + - name: Setup VSTest + uses: Malcolmnixon/Setup-VSTest@v4 + - name: Get Version id: version shell: pwsh @@ -51,10 +54,14 @@ jobs: - name: Build run: msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform - - name: Execute unit tests - run: dotnet test $env:Tests1 $env:Tests2 $env:Tests3 + - name: Execute ICS.D unit tests (net6.0) + run: vstest.console $env:Tests1 + env: + Tests1: ICSharpCode.Decompiler.Tests\bin\${{ matrix.configuration }}\net6.0\ICSharpCode.Decompiler.Tests.exe + + - name: Execute unit tests (net6.0-windows) + run: vstest.console $env:Tests2 $env:Tests3 env: - Tests1: ICSharpCode.Decompiler.Tests\bin\${{ matrix.configuration }}\net6.0-windows\ICSharpCode.Decompiler.Tests.exe Tests2: ILSpy.Tests\bin\${{ matrix.configuration }}\net6.0-windows\ILSpy.Tests.exe Tests3: ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net6.0-windows\ILSpy.BamlDecompiler.Tests.exe diff --git a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj index 982a967c6..6025f2de2 100644 --- a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj +++ b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj @@ -2,7 +2,7 @@ - net6.0-windows + net6.0 True