From 67793bf7c809dfde3e883f21e97410b8ceebbd8f Mon Sep 17 00:00:00 2001 From: Petr Date: Thu, 26 Sep 2024 18:04:17 +0200 Subject: [PATCH] Eradicate Nunit (#17782) --- Directory.Build.targets | 8 +------- azure-pipelines-PR.yml | 6 +++--- azure-pipelines.yml | 2 +- eng/Build.ps1 | 4 ++-- eng/Versions.props | 5 +---- eng/build.sh | 2 +- .../BasicProvider.Tests/BasicProvider.Tests.fsproj | 3 +-- .../ComboProvider.Tests/ComboProvider.Tests.fsproj | 3 +-- tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj | 5 ----- 9 files changed, 11 insertions(+), 27 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index c43425cc369..c6603ea43be 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -10,16 +10,10 @@ $(ArtifactsDir)/bin/fsyacc/$(Configuration)/$(FSharpNetCoreProductDefaultTargetFramework)/$(NETCoreSdkPortableRuntimeIdentifier)/fsyacc.dll - - - - - - - + diff --git a/eng/build.sh b/eng/build.sh index 90260cbfa4f..da10ebfc4f0 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -214,7 +214,7 @@ function Test() { projectname=$(basename -- "$testproject") projectname="${projectname%.*}" testlogpath="$artifacts_dir/TestResults/$configuration/${projectname}_$targetframework.xml" - args="test \"$testproject\" --no-restore --no-build -c $configuration -f $targetframework --test-adapter-path . --logger \"nunit;LogFilePath=$testlogpath\" --blame --results-directory $artifacts_dir/TestResults/$configuration -p:vstestusemsbuildoutput=false" + args="test \"$testproject\" --no-restore --no-build -c $configuration -f $targetframework --test-adapter-path . --logger \"xunit;LogFilePath=$testlogpath\" --blame --results-directory $artifacts_dir/TestResults/$configuration -p:vstestusemsbuildoutput=false" "$DOTNET_INSTALL_DIR/dotnet" $args || exit $? } diff --git a/tests/EndToEndBuildTests/BasicProvider/BasicProvider.Tests/BasicProvider.Tests.fsproj b/tests/EndToEndBuildTests/BasicProvider/BasicProvider.Tests/BasicProvider.Tests.fsproj index 98144131089..4e4aef01856 100644 --- a/tests/EndToEndBuildTests/BasicProvider/BasicProvider.Tests/BasicProvider.Tests.fsproj +++ b/tests/EndToEndBuildTests/BasicProvider/BasicProvider.Tests/BasicProvider.Tests.fsproj @@ -7,6 +7,7 @@ false NO_GENERATIVE $(FSharpCoreShippedPackageVersionValue) + xunit @@ -21,8 +22,6 @@ - - diff --git a/tests/EndToEndBuildTests/ComboProvider/ComboProvider.Tests/ComboProvider.Tests.fsproj b/tests/EndToEndBuildTests/ComboProvider/ComboProvider.Tests/ComboProvider.Tests.fsproj index b884948e8b8..d4d410bacd4 100644 --- a/tests/EndToEndBuildTests/ComboProvider/ComboProvider.Tests/ComboProvider.Tests.fsproj +++ b/tests/EndToEndBuildTests/ComboProvider/ComboProvider.Tests/ComboProvider.Tests.fsproj @@ -7,6 +7,7 @@ false $(FSharpCoreShippedPackageVersionValue) NO_GENERATIVE + xunit @@ -18,8 +19,6 @@ - - diff --git a/tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj b/tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj index 93143ca4103..2ba4f6f837d 100644 --- a/tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj +++ b/tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj @@ -25,11 +25,6 @@ true - - $(DefineConstants);XUNIT - $(DefineConstants);NUNIT - -