@@ -94,6 +94,7 @@ internal sealed partial class TrxReportEngine
9494 private readonly TestNodeUpdateMessage [ ] _testNodeUpdatedMessages ;
9595 private readonly int _failedTestsCount ;
9696 private readonly int _passedTestsCount ;
97+ private readonly int _notExecutedTestsCount ;
9798 private readonly Dictionary < IExtension , List < SessionFileArtifact > > _artifactsByExtension ;
9899 private readonly Dictionary < TestNodeUid , List < SessionFileArtifact > > _artifactsByTestNode ;
99100 private readonly bool ? _adapterSupportTrxCapability ;
@@ -104,27 +105,28 @@ internal sealed partial class TrxReportEngine
104105 private readonly IFileSystem _fileSystem ;
105106 private readonly bool _isCopyingFileAllowed ;
106107
107- public TrxReportEngine ( ITestApplicationModuleInfo testApplicationModuleInfo , IEnvironment environment , ICommandLineOptions commandLineOptionsService , IConfiguration configuration , IClock clock , TestNodeUpdateMessage [ ] testNodeUpdatedMessages , int failedTestsCount , int passedTestsCount , Dictionary < IExtension , List < SessionFileArtifact > > artifactsByExtension , Dictionary < TestNodeUid , List < SessionFileArtifact > > artifactsByTestNode , bool ? adapterSupportTrxCapability , ITestFramework testFrameworkAdapter , DateTimeOffset testStartTime , CancellationToken cancellationToken )
108- : this (
109- new SystemFileSystem ( ) ,
110- testApplicationModuleInfo ,
111- environment ,
112- commandLineOptionsService ,
113- configuration ,
114- clock ,
115- testNodeUpdatedMessages ,
116- failedTestsCount ,
117- passedTestsCount ,
118- artifactsByExtension ,
119- artifactsByTestNode ,
120- adapterSupportTrxCapability ,
121- testFrameworkAdapter ,
122- testStartTime ,
123- cancellationToken )
108+ public TrxReportEngine ( ITestApplicationModuleInfo testApplicationModuleInfo , IEnvironment environment , ICommandLineOptions commandLineOptionsService , IConfiguration configuration , IClock clock , TestNodeUpdateMessage [ ] testNodeUpdatedMessages , int failedTestsCount , int passedTestsCount , int notExecutedTestsCount , Dictionary < IExtension , List < SessionFileArtifact > > artifactsByExtension , Dictionary < TestNodeUid , List < SessionFileArtifact > > artifactsByTestNode , bool ? adapterSupportTrxCapability , ITestFramework testFrameworkAdapter , DateTimeOffset testStartTime , CancellationToken cancellationToken )
109+ : this (
110+ new SystemFileSystem ( ) ,
111+ testApplicationModuleInfo ,
112+ environment ,
113+ commandLineOptionsService ,
114+ configuration ,
115+ clock ,
116+ testNodeUpdatedMessages ,
117+ failedTestsCount ,
118+ passedTestsCount ,
119+ notExecutedTestsCount ,
120+ artifactsByExtension ,
121+ artifactsByTestNode ,
122+ adapterSupportTrxCapability ,
123+ testFrameworkAdapter ,
124+ testStartTime ,
125+ cancellationToken )
124126 {
125127 }
126128
127- internal TrxReportEngine ( IFileSystem fileSystem , ITestApplicationModuleInfo testApplicationModuleInfo , IEnvironment environment , ICommandLineOptions commandLineOptionsService , IConfiguration configuration , IClock clock , TestNodeUpdateMessage [ ] testNodeUpdatedMessages , int failedTestsCount , int passedTestsCount , Dictionary < IExtension , List < SessionFileArtifact > > artifactsByExtension , Dictionary < TestNodeUid , List < SessionFileArtifact > > artifactsByTestNode , bool ? adapterSupportTrxCapability , ITestFramework testFrameworkAdapter , DateTimeOffset testStartTime , CancellationToken cancellationToken , bool isCopyingFileAllowed = true )
129+ public TrxReportEngine ( IFileSystem fileSystem , ITestApplicationModuleInfo testApplicationModuleInfo , IEnvironment environment , ICommandLineOptions commandLineOptionsService , IConfiguration configuration , IClock clock , TestNodeUpdateMessage [ ] testNodeUpdatedMessages , int failedTestsCount , int passedTestsCount , int notExecutedTestsCount , Dictionary < IExtension , List < SessionFileArtifact > > artifactsByExtension , Dictionary < TestNodeUid , List < SessionFileArtifact > > artifactsByTestNode , bool ? adapterSupportTrxCapability , ITestFramework testFrameworkAdapter , DateTimeOffset testStartTime , CancellationToken cancellationToken , bool isCopyingFileAllowed = true )
128130 {
129131 _testApplicationModuleInfo = testApplicationModuleInfo ;
130132 _environment = environment ;
@@ -134,6 +136,7 @@ internal TrxReportEngine(IFileSystem fileSystem, ITestApplicationModuleInfo test
134136 _testNodeUpdatedMessages = testNodeUpdatedMessages ;
135137 _failedTestsCount = failedTestsCount ;
136138 _passedTestsCount = passedTestsCount ;
139+ _notExecutedTestsCount = notExecutedTestsCount ;
137140 _artifactsByExtension = artifactsByExtension ;
138141 _artifactsByTestNode = artifactsByTestNode ;
139142 _adapterSupportTrxCapability = adapterSupportTrxCapability ;
@@ -302,7 +305,7 @@ private async Task AddResultSummaryAsync(XElement testRun, string resultSummaryO
302305 new XAttribute ( "inconclusive" , 0 ) ,
303306 new XAttribute ( "passedButRunAborted" , 0 ) ,
304307 new XAttribute ( "notRunnable" , 0 ) ,
305- new XAttribute ( "notExecuted" , 0 ) ,
308+ new XAttribute ( "notExecuted" , _notExecutedTestsCount ) ,
306309 new XAttribute ( "disconnected" , 0 ) ,
307310 new XAttribute ( "warning" , 0 ) ,
308311 new XAttribute ( "completed" , 0 ) ,
0 commit comments