@@ -94,6 +94,7 @@ internal sealed partial class TrxReportEngine
94
94
private readonly TestNodeUpdateMessage [ ] _testNodeUpdatedMessages ;
95
95
private readonly int _failedTestsCount ;
96
96
private readonly int _passedTestsCount ;
97
+ private readonly int _notExecutedTestsCount ;
97
98
private readonly Dictionary < IExtension , List < SessionFileArtifact > > _artifactsByExtension ;
98
99
private readonly Dictionary < TestNodeUid , List < SessionFileArtifact > > _artifactsByTestNode ;
99
100
private readonly bool ? _adapterSupportTrxCapability ;
@@ -104,27 +105,28 @@ internal sealed partial class TrxReportEngine
104
105
private readonly IFileSystem _fileSystem ;
105
106
private readonly bool _isCopyingFileAllowed ;
106
107
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 )
124
126
{
125
127
}
126
128
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 )
128
130
{
129
131
_testApplicationModuleInfo = testApplicationModuleInfo ;
130
132
_environment = environment ;
@@ -134,6 +136,7 @@ internal TrxReportEngine(IFileSystem fileSystem, ITestApplicationModuleInfo test
134
136
_testNodeUpdatedMessages = testNodeUpdatedMessages ;
135
137
_failedTestsCount = failedTestsCount ;
136
138
_passedTestsCount = passedTestsCount ;
139
+ _notExecutedTestsCount = notExecutedTestsCount ;
137
140
_artifactsByExtension = artifactsByExtension ;
138
141
_artifactsByTestNode = artifactsByTestNode ;
139
142
_adapterSupportTrxCapability = adapterSupportTrxCapability ;
@@ -302,7 +305,7 @@ private async Task AddResultSummaryAsync(XElement testRun, string resultSummaryO
302
305
new XAttribute ( "inconclusive" , 0 ) ,
303
306
new XAttribute ( "passedButRunAborted" , 0 ) ,
304
307
new XAttribute ( "notRunnable" , 0 ) ,
305
- new XAttribute ( "notExecuted" , 0 ) ,
308
+ new XAttribute ( "notExecuted" , _notExecutedTestsCount ) ,
306
309
new XAttribute ( "disconnected" , 0 ) ,
307
310
new XAttribute ( "warning" , 0 ) ,
308
311
new XAttribute ( "completed" , 0 ) ,
0 commit comments