Skip to content

Commit 13353c2

Browse files
Publish NuGet gate tests to version-based drop path (#7236)
1 parent a690ce6 commit 13353c2

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

build/runsettings.proj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
Properties="RunName=NuGet.Tests.Apex;
2121
FileName=NuGet.Tests.Apex.dll;" />
2222

23+
<!-- NuGet.Tests.Apex.Gate.runsettings (VS test gate - runs only [TestCategory("Gate")] tests) -->
24+
<MSBuild
25+
Projects="template.runsettingsproj"
26+
Properties="RunName=NuGet.Tests.Apex.Gate;
27+
FileName=NuGet.Tests.Apex.dll;
28+
TestCaseFilter=TestCategory=Gate;" />
29+
2330
<!-- NuGet.Tests.Apex.Daily.runsettings -->
2431
<MSBuild
2532
Projects="template.runsettingsproj"

eng/pipelines/vs-test/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ steps:
225225
Write-Host "##vso[task.setvariable variable=RunSettingsDrop]$runSettingsDrop"
226226
Write-Host "##vso[task.setvariable variable=RunSettingsDrop;isOutput=true]$runSettingsDrop"
227227
228+
# Test gate drop — mirrors the product drop path with Tests/ prefix so the VS gate can find it by NuGet version
229+
$testsDrop = "${env:MicroBuild_ManifestDropName}" -replace '^Products/', 'Tests/'
230+
Write-Host "Tests Drop: $testsDrop"
231+
Write-Host "##vso[task.setvariable variable=TestsDrop]$testsDrop"
232+
228233
$vsBootstrapperBranch = dotnet msbuild -getProperty:VsTargetBranch build\config.props
229234
Write-Host "VS Bootstrapper Branch: $vsBootstrapperBranch"
230235
Write-Host "##vso[task.setvariable variable=VsBootstrapperBranch;isOutput=true]$vsBootstrapperBranch"
@@ -306,6 +311,16 @@ steps:
306311
usePat: true
307312
dropMetadataContainerName: "DropMetadata-RunSettings"
308313

314+
- task: artifactDropTask@0
315+
displayName: "Publish test gate drop"
316+
inputs:
317+
dropServiceURI: "https://devdiv.artifacts.visualstudio.com"
318+
buildNumber: "$(TestsDrop)"
319+
sourcePath: '$(Build.StagingDirectory)\RunSettings'
320+
toLowerCase: false
321+
usePat: true
322+
dropMetadataContainerName: "DropMetadata-TestGate"
323+
309324
- task: PublishPipelineArtifact@1
310325
displayName: "Publish E2E tests"
311326
inputs:

test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/IVsServicesTestCase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class IVsServicesTestCase : SharedVisualStudioHostTestClass
2525

2626
[TestMethod]
2727
[Timeout(LongerTimeout)]
28+
[TestCategory("Gate")]
2829
public void SimpleInstallFromIVsInstaller()
2930
{
3031
// Arrange

0 commit comments

Comments
 (0)