@@ -161,19 +161,22 @@ public void InitializePublisher(IExecutionContext context, string projectName, V
161161
162162 if ( testResultByFQN . TryGetValue ( testResultFQN , out List < TestCaseResult > inputs ) )
163163 {
164- foreach ( var input in inputs )
164+ if ( testRunData [ testRunDataIterator ] . TestResults [ testResultDataIterator ] . Outcome != "NotExecuted" )
165165 {
166- var testCaseResultDataUpdated = TestResultUtils . CloneTestCaseResultData ( testRunData [ testRunDataIterator ] . TestResults [ testResultDataIterator ] ) ;
167-
168- testCaseResultDataUpdated . TestPoint = input . TestPoint ;
169- testCaseResultDataUpdated . TestCaseTitle = input . TestCaseTitle ;
170- testCaseResultDataUpdated . Configuration = input . Configuration ;
171- testCaseResultDataUpdated . TestCase = input . TestCase ;
172- testCaseResultDataUpdated . Owner = input . Owner ;
173- testCaseResultDataUpdated . State = "5" ;
174- testCaseResultDataUpdated . TestCaseRevision = input . TestCaseRevision ;
175-
176- testResultsUpdated . Add ( testCaseResultDataUpdated ) ;
166+ foreach ( var input in inputs )
167+ {
168+ var testCaseResultDataUpdated = TestResultUtils . CloneTestCaseResultData ( testRunData [ testRunDataIterator ] . TestResults [ testResultDataIterator ] ) ;
169+
170+ testCaseResultDataUpdated . TestPoint = input . TestPoint ;
171+ testCaseResultDataUpdated . TestCaseTitle = input . TestCaseTitle ;
172+ testCaseResultDataUpdated . Configuration = input . Configuration ;
173+ testCaseResultDataUpdated . TestCase = input . TestCase ;
174+ testCaseResultDataUpdated . Owner = input . Owner ;
175+ testCaseResultDataUpdated . State = "5" ;
176+ testCaseResultDataUpdated . TestCaseRevision = input . TestCaseRevision ;
177+
178+ testResultsUpdated . Add ( testCaseResultDataUpdated ) ;
179+ }
177180 }
178181 }
179182 }
0 commit comments