These changes speed up the scan test suite from taking 10.8s on my laptop, to now only taking 1.57s.
This applies the same FastlaneCore::Project object caching strategy from gym's tests.
The ReportCollector is also refactored to extract dependencies on the global Scan.config object. This allows this class to be tested in isolation, without needing the expensive Scan.config = work.
These changes speed up the
scan
test suite from taking 10.8s on my laptop, to now only taking 1.57s.This applies the same
FastlaneCore::Project
object caching strategy fromgym
's tests.The
ReportCollector
is also refactored to extract dependencies on the globalScan.config
object. This allows this class to be tested in isolation, without needing the expensiveScan.config =
work.