File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export interface TestReportingSettings {
2424 TestRunTitle : string ;
2525 TestResultsDirectory : string ;
2626 TestRunSystem : string ;
27+ TestSourceSettings : TestSourceSettings ;
2728}
2829
2930export interface TestSelectionSettings {
@@ -102,6 +103,10 @@ export interface ExecutionSettings {
102103 DiagnosticsSettings : DiagnosticsSettings ;
103104}
104105
106+ export interface TestSourceSettings {
107+ PullRequestTargetBranchName : string ;
108+ }
109+
105110export interface DiagnosticsSettings {
106111 Enabled : boolean ;
107112 DumpCollectionType : string ;
Original file line number Diff line number Diff 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' ) ;
Original file line number Diff line number Diff line change 620620 "diagnosticsInput" : " ms-resource:loc.messages.diagnosticsInput" ,
621621 "UncPathNotSupported" : " ms-resource:loc.messages.UncPathNotSupported"
622622 }
623- }
623+ }
You can’t perform that action at this time.
0 commit comments