Skip to content

Commit 50c75af

Browse files
committed
xunit.v3
1 parent 4ca363f commit 50c75af

File tree

19 files changed

+21
-26
lines changed

19 files changed

+21
-26
lines changed

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<IgnoreMibc Condition="'$(IgnoreMibc)' == ''">$(DotNetBuildSourceOnly)</IgnoreMibc>
1111
<!-- When building the .NET product, there's no need to publish Windows PDBs. Any conversion to Windows PDBs will be done during staging, if necessary. -->
1212
<PublishWindowsPdb Condition="'$(DotNetBuild)' == 'true'">false</PublishWindowsPdb>
13+
14+
<TestRunnerName>XUnitV3</TestRunnerName>
1315
</PropertyGroup>
1416

1517
<!--

Directory.Build.targets

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
<FsYaccPath>$(ArtifactsDir)/bin/fsyacc/$(Configuration)/$(FSharpNetCoreProductDefaultTargetFramework)/$(NETCoreSdkPortableRuntimeIdentifier)/fsyacc.dll</FsYaccPath>
1111
</PropertyGroup>
1212

13-
<ItemGroup Condition="'$(UnitTestType)' == 'xunit'">
14-
<PackageReference Include="xunit" Version="$(XUnitVersion)" />
15-
<PackageReference Include="xunit.runner.visualstudio" Version="$(XUnitRunnerVersion)" />
13+
<ItemGroup Condition="'$(IsTestProject)' == 'true' OR '$(IsTestingPlatformApplication)' == 'true'">
1614
<PackageReference Include="XunitXml.TestLogger" Version="$(XunitXmlTestLoggerVersion)" />
1715
</ItemGroup>
1816

17+
<ItemGroup Condition="'$(IsTestingPlatformApplication)' == 'true'">
18+
<PackageReference Include="Microsoft.Testing.Extensions.HangDump" Version="$(MicrosoftTestingPlatformVersion)" />
19+
</ItemGroup>
20+
1921
<!--
2022
When .NET gets built from source, make the SDK aware there are bootstrap packages
2123
for Microsoft.NETCore.App.Runtime.<rid> and Microsoft.NETCore.App.Crossgen2.<rid>.

eng/Versions.props

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project>
22
<Import Project="Version.Details.props" Condition="Exists('Version.Details.props')" />
33
<PropertyGroup>
4-
<!-- opt-out properties -->
5-
<UsingToolXUnit>false</UsingToolXUnit>
64
<!-- opt-in properties -->
75
<UsingToolNuGetRepack>true</UsingToolNuGetRepack>
86
<UsingToolSymbolUploader>true</UsingToolSymbolUploader>
@@ -188,9 +186,7 @@
188186
<RoslynToolsSignToolVersion>1.0.0-beta2-dev3</RoslynToolsSignToolVersion>
189187
<StreamJsonRpcVersion>2.22.11</StreamJsonRpcVersion>
190188
<NerdbankStreamsVersion>2.12.87</NerdbankStreamsVersion>
191-
<XUnitVersion>2.9.0</XUnitVersion>
192-
<XUnitRunnerVersion>2.8.2</XUnitRunnerVersion>
193-
<XunitXmlTestLoggerVersion>3.1.17</XunitXmlTestLoggerVersion>
189+
<XunitXmlTestLoggerVersion>7.0.1</XunitXmlTestLoggerVersion>
194190
<HumanizerCoreVersion>2.2.0</HumanizerCoreVersion>
195191
<!-- -->
196192
</PropertyGroup>

tests/FSharp.Build.UnitTests/FSharp.Build.UnitTests.fsproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
<PropertyGroup>
66
<TargetFrameworks>net472;$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
77
<TargetFrameworks Condition="'$(OS)' == 'Unix' or '$(BUILDING_USING_DOTNET)' == 'true'">$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
8-
<OutputType>Library</OutputType>
8+
<OutputType>Exe</OutputType>
99
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
10-
<UnitTestType>xunit</UnitTestType>
1110
</PropertyGroup>
1211

1312
<ItemGroup>

tests/FSharp.Compiler.ComponentTests/FSharp.Compiler.ComponentTests.fsproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
<PropertyGroup>
66
<TargetFrameworks>net472;$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
77
<TargetFrameworks Condition="'$(OS)' == 'Unix' or '$(BUILDING_USING_DOTNET)' == 'true'">$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
8-
<OutputType>Library</OutputType>
8+
<OutputType>Exe</OutputType>
99
<GenerateProgramFile>false</GenerateProgramFile>
1010
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
11-
<UnitTestType>xunit</UnitTestType>
1211
<IsTestProject>true</IsTestProject>
1312
<ExcludeFromSourceOnlyBuild>true</ExcludeFromSourceOnlyBuild>
1413
<Optimize>false</Optimize>

tests/FSharp.Compiler.LanguageServer.Tests/FSharp.Compiler.LanguageServer.Tests.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<Tailcalls>false</Tailcalls>
1313
<OtherFlags>$(OtherFlags) --warnon:1182</OtherFlags>
1414
<NoWarn>$(NoWarn);FS0988</NoWarn>
15+
<OutputType>Exe</OutputType>
1516
</PropertyGroup>
1617

1718
<ItemGroup>

tests/FSharp.Compiler.Private.Scripting.UnitTests/FSharp.Compiler.Private.Scripting.UnitTests.fsproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
<PropertyGroup>
55
<TargetFrameworks>net472;$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
66
<TargetFrameworks Condition="'$(OS)' == 'Unix' or '$(BUILDING_USING_DOTNET)' == 'true'">$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
7-
<OutputType>Library</OutputType>
7+
<OutputType>Exe</OutputType>
88
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
9-
<UnitTestType>xunit</UnitTestType>
109
<ExcludeFromSourceOnlyBuild>true</ExcludeFromSourceOnlyBuild>
1110
<NoWarn>$(NoWarn);44</NoWarn> <!-- Obsolete -->
1211
</PropertyGroup>

tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
<TolerateUnusedBindings>true</TolerateUnusedBindings>
99
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
10-
<UnitTestType>xunit</UnitTestType>
10+
<OutputType>Exe</OutputType>
1111
</PropertyGroup>
1212

1313
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">

tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<TargetFrameworks>$(FSharpNetCoreProductTargetFramework);net472</TargetFrameworks>
77
<TargetFrameworks Condition="'$(OS)' == 'Unix' or '$(BUILDING_USING_DOTNET)' == 'true'">$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
8-
<OutputType>Library</OutputType>
8+
<OutputType>Exe</OutputType>
99

1010
<AssemblyName>FSharp.Core.UnitTests</AssemblyName>
1111
<PackageId>Microsoft.FSharp.Core.UnitTests</PackageId>
@@ -14,7 +14,6 @@
1414
<LangVersion>preview</LangVersion>
1515
<TolerateUnusedBindings>true</TolerateUnusedBindings>
1616
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
17-
<UnitTestType>xunit</UnitTestType>
1817
<IsTestProject>true</IsTestProject>
1918
<IsPackable>true</IsPackable>
2019
<PackageLicenseExpression>MIT</PackageLicenseExpression>

tests/FSharp.Test.Utilities/Compiler.fs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ open FSharp.Test.ScriptHelpers
1313
open Microsoft.CodeAnalysis
1414
open Microsoft.CodeAnalysis.CSharp
1515
open Xunit
16-
open Xunit.Abstractions
1716
open System
1817
open System.Collections.Immutable
1918
open System.IO

0 commit comments

Comments
 (0)