@@ -354,7 +354,7 @@ function VerifyAssemblyVersionsAndSymbols() {
354354 }
355355}
356356
357- function TestUsingMSBuild ([string ] $testProject , [string ] $targetFramework , [string ]$testadapterpath , [boolean ] $noTestFilter = $false , [ boolean ] $ asBackgroundJob = $false ) {
357+ function TestUsingMSBuild ([string ] $testProject , [string ] $targetFramework , [string ]$testadapterpath , [boolean ] $asBackgroundJob = $false ) {
358358 $dotnetPath = InitializeDotNetCli
359359 $dotnetExe = Join-Path $dotnetPath " dotnet.exe"
360360 $projectName = [System.IO.Path ]::GetFileNameWithoutExtension($testProject )
@@ -371,10 +371,6 @@ function TestUsingMSBuild([string] $testProject, [string] $targetFramework, [str
371371 $args += " --no-build"
372372 }
373373
374- if ($env: RunningAsPullRequest -ne " true" -and $noTestFilter -eq $false ) {
375- $args += " --filter TestCategory!=PullRequest"
376- }
377-
378374 if ($asBackgroundJob ) {
379375 Write-Host (" Starting on the background: $args " )
380376 Write-Host (" ------------------------------------" )
@@ -391,14 +387,6 @@ function TestUsingMSBuild([string] $testProject, [string] $targetFramework, [str
391387 }
392388}
393389
394- function TestUsingXUnit ([string ] $testProject , [string ] $targetFramework , [string ]$testadapterpath , [boolean ] $asBackgroundJob = $false ) {
395- TestUsingMsBuild - testProject $testProject - targetFramework $targetFramework - testadapterpath $testadapterpath - noTestFilter $true - asBackgroundJob $asBackgroundJob
396- }
397-
398- function TestUsingNUnit ([string ] $testProject , [string ] $targetFramework , [string ]$testadapterpath , [boolean ] $asBackgroundJob = $false ) {
399- TestUsingMsBuild - testProject $testProject - targetFramework $targetFramework - testadapterpath $testadapterpath - noTestFilter $false - asBackgroundJob $asBackgroundJob
400- }
401-
402390function Prepare-TempDir () {
403391 Copy-Item (Join-Path $RepoRoot " tests\Resources\Directory.Build.props" ) $TempDir
404392 Copy-Item (Join-Path $RepoRoot " tests\Resources\Directory.Build.targets" ) $TempDir
@@ -593,27 +581,27 @@ try {
593581 $script :BuildMessage = " Failure running tests"
594582
595583 if ($testCoreClr ) {
596- $bgJob = TestUsingNUnit - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" - asBackgroundJob $true
584+ $bgJob = TestUsingMSBuild - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" - asBackgroundJob $true
597585
598- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
599- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
600- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
601- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Build.UnitTests\"
602- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
586+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
587+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
588+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
589+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Build.UnitTests\"
590+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
603591
604592 # Collect output from background jobs
605593 Wait-job $bgJob | out-null
606594 Receive-Job $bgJob - ErrorAction Stop
607595 }
608596
609597 if ($testDesktop ) {
610- $bgJob = TestUsingNUnit - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" - asBackgroundJob $true
598+ $bgJob = TestUsingMSBuild - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" - asBackgroundJob $true
611599
612- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" - noTestFilter $true
613- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
614- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
615- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Build.UnitTests\"
616- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
600+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
601+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
602+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
603+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Build.UnitTests\"
604+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
617605
618606 # Collect output from background jobs
619607 Wait-job $bgJob | out-null
@@ -648,46 +636,46 @@ try {
648636 }
649637
650638 if ($testFSharpCore ) {
651- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
652- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
639+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
640+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\"
653641 }
654642
655643 if ($testCompiler ) {
656- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" - noTestFilter $true
657- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" - noTestFilter $true
658- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
659- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
644+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
645+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
646+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
647+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
660648 }
661649
662650
663651 if ($testCompilerComponentTests ) {
664- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
665- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" - noTestFilter $true
652+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
653+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\"
666654 }
667655
668656
669657 if ($testCompilerService ) {
670- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
671- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
658+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
659+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\"
672660 }
673661
674662 if ($testCambridge ) {
675- TestUsingNUnit - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\"
676- TestUsingNUnit - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\"
663+ TestUsingMSBuild - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\"
664+ TestUsingMSBuild - testProject " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\"
677665 }
678666
679667 if ($testScripting ) {
680- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
681- TestUsingXUnit - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
668+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
669+ TestUsingMSBuild - testProject " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\"
682670 }
683671
684672 if ($testVs -and -not $noVisualStudio ) {
685- TestUsingXUnit - testProject " $RepoRoot \vsintegration\tests\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj"
686- TestUsingNUnit - testProject " $RepoRoot \vsintegration\tests\UnitTests\VisualFSharp.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\VisualFSharp.UnitTests\"
673+ TestUsingMSBuild - testProject " $RepoRoot \vsintegration\tests\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj"
674+ TestUsingMSBuild - testProject " $RepoRoot \vsintegration\tests\UnitTests\VisualFSharp.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\VisualFSharp.UnitTests\"
687675 }
688676
689677 if ($testIntegration ) {
690- TestUsingXUnit - testProject " $RepoRoot \vsintegration\tests\FSharp.Editor.IntegrationTests\FSharp.Editor.IntegrationTests.csproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.IntegrationTests\"
678+ TestUsingMSBuild - testProject " $RepoRoot \vsintegration\tests\FSharp.Editor.IntegrationTests\FSharp.Editor.IntegrationTests.csproj" - targetFramework $script :desktopTargetFramework - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.IntegrationTests\"
691679 }
692680
693681 if ($testAOT ) {
0 commit comments