File tree Expand file tree Collapse file tree 8 files changed +29
-16
lines changed
ICSharpCode.Decompiler.Tests
ILSpy.BamlDecompiler.Tests Expand file tree Collapse file tree 8 files changed +29
-16
lines changed Original file line number Diff line number Diff line change @@ -63,24 +63,20 @@ jobs:
6363 run : msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform /m
6464
6565 - name : Execute unit tests
66- run : dotnet test --logger "trx;LogFileName=${{ matrix.configuration }}.trx" --results-directory test-results $env:Tests1 $env:Tests2 $env:Tests3
67- env :
68- Tests1 : ICSharpCode.Decompiler.Tests\bin\${{ matrix.configuration }}\net10.0-windows\win-x64\ICSharpCode.Decompiler.Tests.dll
69- Tests2 : ILSpy.Tests\bin\${{ matrix.configuration }}\net10.0-windows\ILSpy.Tests.dll
70- Tests3 : ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net10.0-windows\win-x64\ILSpy.BamlDecompiler.Tests.dll
66+ run : dotnet test --solution ilspy.sln --configuration ${{ matrix.configuration }} --no-build --report-trx --results-directory test-results/${{ matrix.configuration }}
7167
7268 - name : Upload Test Logs
7369 uses : actions/upload-artifact@v4
7470 if : success() || failure()
7571 with :
7672 name : test-results-${{ matrix.configuration }}
77- path : ' test-results/${{ matrix.configuration }}.trx'
73+ path : ' test-results/${{ matrix.configuration }}/* .trx'
7874
7975 - name : Create Test Report
8076 uses : icsharpcode/test-summary-action@dist
8177 if : always()
8278 with :
83- paths : " test-results/${{ matrix.configuration }}.trx"
79+ paths : " test-results/${{ matrix.configuration }}/* .trx"
8480 folded : true
8581
8682 - name : Format check
Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ ILSpy.Installer/wix/
2020/VERSION
2121/ICSharpCode.Decompiler /Properties /DecompilerVersionInfo.cs
2222* /.vscode /
23- DecompilerTests.config.json
23+ DecompilerTests.config.json
24+ * .trx
Original file line number Diff line number Diff line change 22 <PropertyGroup >
33 <WarningsAsErrors >IDE2000</WarningsAsErrors >
44 </PropertyGroup >
5+
6+ <PropertyGroup >
7+ <EnableNUnitRunner >true</EnableNUnitRunner >
8+ </PropertyGroup >
59</Project >
Original file line number Diff line number Diff line change 1111 <PackageVersion Include =" Dirkster.AvalonDock.Themes.VS2013" Version =" 4.72.1" />
1212 <PackageVersion Include =" ILCompiler.Reflection.ReadyToRun.Experimental" Version =" 10.0.0-preview.4.25213.101" />
1313 <PackageVersion Include =" Iced" Version =" 1.21.0" />
14- <PackageVersion Include =" JunitXml.TestLogger" Version =" 6.1.0" />
1514 <PackageVersion Include =" K4os.Compression.LZ4" Version =" 1.3.8" />
1615 <PackageVersion Include =" McMaster.Extensions.CommandLineUtils" Version =" 4.1.1" />
1716 <PackageVersion Include =" McMaster.Extensions.Hosting.CommandLine" Version =" 4.1.1" />
2928 <PackageVersion Include =" Microsoft.NETCore.ILDAsm" Version =" 9.0.4" />
3029 <PackageVersion Include =" Microsoft.Sbom.Targets" Version =" 3.1.0" />
3130 <PackageVersion Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" />
31+ <PackageVersion Include =" Microsoft.Testing.Extensions.TrxReport" Version =" 1.7.3" />
3232 <PackageVersion Include =" Microsoft.Xaml.Behaviors.Wpf" Version =" 1.1.135" />
3333 <PackageVersion Include =" Mono.Cecil" Version =" 0.11.6" />
3434 <PackageVersion Include =" NSubstitute" Version =" 5.3.0" />
3535 <PackageVersion Include =" NSubstitute.Analyzers.CSharp" Version =" 1.0.17" />
3636 <PackageVersion Include =" NUnit" Version =" 4.3.2" />
37- <PackageVersion Include =" NUnit3TestAdapter" Version =" 4.6.0 " />
37+ <PackageVersion Include =" NUnit3TestAdapter" Version =" 5.1.0-alpha.3 " />
3838 <PackageVersion Include =" NuGet.Protocol" Version =" 6.13.2" />
3939 <PackageVersion Include =" PowerShellStandard.Library" Version =" 5.1.1" />
4040 <PackageVersion Include =" Shouldly" Version =" 4.3.0" />
Original file line number Diff line number Diff line change 1313 <RuntimeIdentifier Condition =" $(IsWindowsARM64) == true" >win-arm64</RuntimeIdentifier >
1414
1515 <IsPackable >false</IsPackable >
16- <StartupObject >AutoGeneratedProgram</StartupObject >
16+
17+ <GenerateTestingPlatformEntryPoint >true</GenerateTestingPlatformEntryPoint >
18+ <StartupObject >ICSharpCode.Decompiler.Tests.MicrosoftTestingPlatformEntryPoint</StartupObject >
19+ <OutputType >Exe</OutputType >
1720
1821 <AllowUnsafeBlocks >True</AllowUnsafeBlocks >
1922
6972 </PackageReference >
7073 <PackageReference Include =" NUnit" />
7174 <PackageReference Include =" Shouldly" />
72- <PackageReference Include =" JunitXml.TestLogger " />
75+ <PackageReference Include =" Microsoft.Testing.Extensions.TrxReport " />
7376 <PackageReference Include =" Microsoft.NET.Test.Sdk" />
7477 <PackageReference Include =" System.Memory" />
7578 <PackageReference Include =" Mono.Cecil" />
Original file line number Diff line number Diff line change 1212 <RuntimeIdentifier Condition =" $(IsWindowsARM64) == true" >win-arm64</RuntimeIdentifier >
1313
1414 <IsPackable >false</IsPackable >
15- <StartupObject >AutoGeneratedProgram</ StartupObject >
15+ <OutputType >Exe</ OutputType >
1616
1717 <EnableDefaultItems >false</EnableDefaultItems >
1818 <UseWpf >true</UseWpf >
4040 <PackageReference Include =" NUnit" />
4141 <PackageReference Include =" NUnit3TestAdapter" />
4242 <PackageReference Include =" Shouldly" />
43- <PackageReference Include =" JunitXml.TestLogger " />
43+ <PackageReference Include =" Microsoft.Testing.Extensions.TrxReport " />
4444 <PackageReference Include =" coverlet.collector" >
4545 <PrivateAssets >all</PrivateAssets >
4646 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<Project Sdk =" Microsoft.NET.Sdk" >
33
4+ <PropertyGroup >
5+ <IsWindowsX64 Condition =" $([MSBuild]::IsOsPlatform('Windows')) And $([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture) == X64" >true</IsWindowsX64 >
6+ <IsWindowsARM64 Condition =" $([MSBuild]::IsOsPlatform('Windows')) And $([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture) == ARM64" >true</IsWindowsARM64 >
7+ </PropertyGroup >
8+
49 <PropertyGroup >
510 <TargetFramework >net10.0-windows</TargetFramework >
611 <IsPackable >false</IsPackable >
7- <StartupObject >AutoGeneratedProgram</StartupObject >
12+ <RuntimeIdentifier Condition =" $(IsWindowsX64) == true" >win-x64</RuntimeIdentifier >
13+ <RuntimeIdentifier Condition =" $(IsWindowsARM64) == true" >win-arm64</RuntimeIdentifier >
14+ <OutputType >Exe</OutputType >
815
916 <AllowUnsafeBlocks >True</AllowUnsafeBlocks >
1017
7582 </PackageReference >
7683 <PackageReference Include =" NUnit" />
7784 <PackageReference Include =" Shouldly" />
78- <PackageReference Include =" JunitXml.TestLogger " />
85+ <PackageReference Include =" Microsoft.Testing.Extensions.TrxReport " />
7986 </ItemGroup >
8087
8188 <ItemGroup >
Original file line number Diff line number Diff line change 1+ [dotnet.test.runner]
2+ name = "Microsoft.Testing.Platform"
You can’t perform that action at this time.
0 commit comments