Optimize collection performance
Only send failed collection reports, as master is only interested in failed reports. Fix #330
This commit is contained in:
@@ -109,8 +109,10 @@ class WorkerInteractor(object):
|
||||
self.sendevent("testreport", data=data)
|
||||
|
||||
def pytest_collectreport(self, report):
|
||||
data = serialize_report(report)
|
||||
self.sendevent("collectreport", data=data)
|
||||
# master only needs reports that failed, as optimization send only them instead (#330)
|
||||
if report.failed:
|
||||
data = serialize_report(report)
|
||||
self.sendevent("collectreport", data=data)
|
||||
|
||||
def pytest_logwarning(self, message, code, nodeid, fslocation):
|
||||
self.sendevent(
|
||||
|
||||
Reference in New Issue
Block a user