Browse Source

Switch to vstest.console (and go back to net6.0 for ics.d.test re:xplat)

pull/2642/head
Christoph Wille 3 years ago
parent
commit
c6641d52ac
  1. 13
      .github/workflows/build-ilspy.yml
  2. 2
      ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj

13
.github/workflows/build-ilspy.yml

@ -38,6 +38,9 @@ jobs: @@ -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: @@ -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

2
ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>

Loading…
Cancel
Save