Skip to content

Commit dc79898

Browse files
FIxing the input parity test (#9897)
1 parent 184d769 commit dc79898

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Tasks/VsTestV2/inputdatacontract.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export interface TestReportingSettings {
2424
TestRunTitle : string;
2525
TestResultsDirectory : string;
2626
TestRunSystem : string;
27+
TestSourceSettings : TestSourceSettings;
2728
}
2829

2930
export interface TestSelectionSettings {
@@ -102,6 +103,10 @@ export interface ExecutionSettings {
102103
DiagnosticsSettings : DiagnosticsSettings;
103104
}
104105

106+
export interface TestSourceSettings {
107+
PullRequestTargetBranchName : string;
108+
}
109+
105110
export interface DiagnosticsSettings {
106111
Enabled : boolean;
107112
DumpCollectionType : string;

Tasks/VsTestV2/inputparser.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ function getTestReportingSettings(inputDataContract : idc.InputDataContract) : i
158158
inputDataContract.TestReportingSettings = <idc.TestReportingSettings>{};
159159
inputDataContract.TestReportingSettings.TestRunTitle = tl.getInput('testRunTitle');
160160
inputDataContract.TestReportingSettings.TestRunSystem = 'VSTS - vstest';
161-
161+
inputDataContract.TestReportingSettings.TestSourceSettings = <idc.TestSourceSettings>{};
162+
inputDataContract.TestReportingSettings.TestSourceSettings.PullRequestTargetBranchName = tl.getVariable('System.PullRequest.TargetBranch');
163+
162164
if (utils.Helper.isNullEmptyOrUndefined(inputDataContract.TestReportingSettings.TestRunTitle)) {
163165

164166
let definitionName = tl.getVariable('BUILD_DEFINITIONNAME');

Tasks/VsTestV2/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,4 +620,4 @@
620620
"diagnosticsInput": "ms-resource:loc.messages.diagnosticsInput",
621621
"UncPathNotSupported": "ms-resource:loc.messages.UncPathNotSupported"
622622
}
623-
}
623+
}

0 commit comments

Comments
 (0)