@@ -114,6 +114,14 @@ def summary(self, stream):
114
114
for node_desc in sorted (self .node_descs ):
115
115
self .sep (stream , ' ' , '%s' % node_desc )
116
116
117
+ # Report on any failed workers.
118
+ if self .failed_workers :
119
+ self .sep (stream , '-' , 'coverage: failed workers' )
120
+ stream .write ('The following workers failed to return coverage data, '
121
+ 'ensure that pytest-cov is installed on these workers.\n ' )
122
+ for node in self .failed_workers :
123
+ stream .write ('%s\n ' % node .gateway .id )
124
+
117
125
# Produce terminal report if wanted.
118
126
if any (x in self .cov_report for x in ['term' , 'term-missing' ]):
119
127
options = {
@@ -157,14 +165,6 @@ def summary(self, stream):
157
165
self .cov .xml_report (ignore_errors = True , outfile = output )
158
166
stream .write ('Coverage XML written to file %s\n ' % (self .cov .config .xml_output if output is None else output ))
159
167
160
- # Report on any failed workers.
161
- if self .failed_workers :
162
- self .sep (stream , '-' , 'coverage: failed workers' )
163
- stream .write ('The following workers failed to return coverage data, '
164
- 'ensure that pytest-cov is installed on these workers.\n ' )
165
- for node in self .failed_workers :
166
- stream .write ('%s\n ' % node .gateway .id )
167
-
168
168
return total
169
169
170
170
0 commit comments