Skip to content

Commit 7b64ed2

Browse files
authored
Pass AdditionalTestArguments to tests (#23081)
1 parent 674ee24 commit 7b64ed2

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

eng/pipelines/templates/jobs/ci.tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ jobs:
5656
/p:ServiceDirectory=${{ parameters.ServiceToTest }}
5757
/p:IncludeSrc=false /p:IncludeSamples=false /p:IncludePerf=false /p:IncludeStress=false
5858
/p:RunApiCompat=false /p:InheritDocEnabled=false
59-
/p:Configuration=$(BuildConfiguration) $(ConvertToProjectReferenceOption)
59+
/p:Configuration=$(BuildConfiguration)
6060
/p:CollectCoverage=$(CollectCoverage) /p:CodeCoverageDirectory=$(Build.SourcesDirectory)\sdk\${{parameters.ServiceDirectory}}
61+
$(AdditionalTestArguments)
6162
displayName: "Build & Test ($(TestTargetFramework))"
6263
- task: PublishTestResults@2
6364
condition: always()

eng/pipelines/templates/stages/platform-matrix.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@
3737
}
3838
},
3939
"TestMode": {
40-
"netcoreapp21_Coverage_Record": {
40+
"netcoreapp31_Coverage_Record": {
4141
"SupportsRecording": true,
4242
"CollectCoverage": true,
4343
"TestTargetFramework": "netcoreapp3.1"
44-
},
45-
"net5.0": {
46-
"TestTargetFramework": "net5.0"
4744
}
4845
}
4946
}

eng/pipelines/templates/variables/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
DocWardenVersion: '0.6.1'
33
OfficialBuildId: $(Build.BuildNumber)
4-
ConvertToProjectReferenceOption: ''
4+
AdditionalTestArguments: ''
55
skipComponentGovernanceDetection: true
66
NugetSecurityAnalysisWarningLevel: 'none'
77
${{ if ne(variables['System.TeamProject'], 'internal') }}:

sdk/translation/Azure.AI.Translation.Document/tests/Azure.AI.Translation.Document.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
<ProjectReference Include="..\src\Azure.AI.Translation.Document.csproj" />
1717
</ItemGroup>
1818

19+
<ItemGroup>
20+
<ExcludeFromProjectReferenceToConversion Include="Azure.Storage.Blobs" />
21+
</ItemGroup>
22+
1923
</Project>

sdk/translation/Azure.AI.Translation.Document/tests/Infrastructure/DocumentTranslationLiveTestBase.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ public DocumentTranslationClient GetClient(
6262

6363
public BlobContainerClient GetBlobContainerClient(string containerName)
6464
{
65-
return InstrumentClient(new BlobContainerClient(TestEnvironment.StorageConnectionString, containerName, InstrumentClientOptions(new BlobClientOptions())));
65+
return InstrumentClient(new BlobContainerClient(
66+
TestEnvironment.StorageConnectionString,
67+
containerName,
68+
InstrumentClientOptions(new BlobClientOptions(BlobClientOptions.ServiceVersion.V2020_04_08))));
6669
}
6770

6871
public Uri CreateSourceContainer(List<TestDocument> documents)

0 commit comments

Comments
 (0)