@@ -26,6 +26,7 @@ usage()
2626 echo " --testcoreclr Run unit tests on .NET Core (short: --test, -t)"
2727 echo " --testCompilerComponentTests Run FSharp.Compiler.ComponentTests on .NET Core"
2828 echo " --testBenchmarks Build and Run Benchmark suite"
29+ echo " --testScripting Run FSharp.Private.ScriptingTests on .NET Core"
2930 echo " "
3031 echo " Advanced settings:"
3132 echo " --ci Building in CI"
@@ -60,6 +61,7 @@ publish=false
6061test_core_clr=false
6162test_compilercomponent_tests=false
6263test_benchmarks=false
64+ test_scripting=false
6365configuration=" Debug"
6466verbosity=' minimal'
6567binary_log=false
@@ -136,6 +138,9 @@ while [[ $# > 0 ]]; do
136138 --testbenchmarks)
137139 test_benchmarks=true
138140 ;;
141+ --testscripting)
142+ test_scripting=true
143+ ;;
139144 --ci)
140145 ci=true
141146 ;;
@@ -219,7 +224,7 @@ function TestUsingNUnit() {
219224 projectname=$( basename -- " $testproject " )
220225 projectname=" ${projectname% .* } "
221226 testlogpath=" $artifacts_dir /TestResults/$configuration /${projectname} _$targetframework .xml"
222- args=" test \" $testproject \" --no-restore --no-build -c $configuration -f $targetframework --test-adapter-path . --logger \" nunit;LogFilePath=$testlogpath \" $filterArgs --blame --results-directory $artifacts_dir /TestResults/$configuration "
227+ args=" test \" $testproject \" --no-restore --no-build -c $configuration -f $targetframework --test-adapter-path . --logger \" nunit;LogFilePath=$testlogpath \" $filterArgs --blame --results-directory $artifacts_dir /TestResults/$configuration -p:vstestusemsbuildoutput=false "
223228 " $DOTNET_INSTALL_DIR /dotnet" $args || exit $?
224229}
225230
@@ -325,9 +330,9 @@ BuildSolution
325330if [[ " $test_core_clr " == true ]]; then
326331 coreclrtestframework=$tfm
327332 TestUsingNUnit --testproject " $repo_root /tests/FSharp.Compiler.ComponentTests/FSharp.Compiler.ComponentTests.fsproj" --targetframework $coreclrtestframework --notestfilter
328- TestUsingXUnit --testproject " $repo_root /tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj" --targetframework $coreclrtestframework --notestfilter
333+ TestUsingNUnit --testproject " $repo_root /tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj" --targetframework $coreclrtestframework --notestfilter
329334 TestUsingNUnit --testproject " $repo_root /tests/FSharp.Compiler.Private.Scripting.UnitTests/FSharp.Compiler.Private.Scripting.UnitTests.fsproj" --targetframework $coreclrtestframework
330- TestUsingXUnit --testproject " $repo_root /tests/FSharp.Build.UnitTests/FSharp.Build.UnitTests.fsproj" --targetframework $coreclrtestframework
335+ TestUsingNUnit --testproject " $repo_root /tests/FSharp.Build.UnitTests/FSharp.Build.UnitTests.fsproj" --targetframework $coreclrtestframework
331336 TestUsingNUnit --testproject " $repo_root /tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj" --targetframework $coreclrtestframework
332337fi
333338
@@ -342,4 +347,9 @@ if [[ "$test_benchmarks" == true ]]; then
342347 popd
343348fi
344349
345- ExitWithExitCode 0
350+ if [[ " $test_scripting " == true ]]; then
351+ coreclrtestframework=$tfm
352+ TestUsingNUnit --testproject " $repo_root /tests/FSharp.Compiler.Private.Scripting.UnitTests/FSharp.Compiler.Private.Scripting.UnitTests.fsproj" --targetframework $coreclrtestframework
353+ fi
354+
355+ ExitWithExitCode 0
0 commit comments