ComputationStep implementation in CE are currently using the BatchReportReader class from the sonar-batch module directly.
Using this class raises several issues:
- this class reads files on disk. Therefor unit tests creates Protofbuf objects, writes them to disk, and Protobuf objects are then created again from these files => waste of time, memory, CPU and useless IOs
- this is a class, we can not provide another implementation for unit tests unless we use mocks (doh!)
- ComputationSteps could benefit from other methods that those defines by the sonar-batch class
- eg. we could rather define methods returnings CloseableIterator of Protobuf objects than returning a File and have every step code the parsing