Clone
Bo Zhang <bo@gradle.com>
committed
on 15 Aug
Prefer composition over inheritance in PerformanceTest hierarchy (#10262)
### Context

Previously, we had a bad `PerformanceTest` hierarchy:… Show more
Prefer composition over inheritance in PerformanceTest hierarchy (#10262)

### Context

Previously, we had a bad `PerformanceTest` hierarchy:

- PerformanceTest

 - ReportGenerationPerformanceTest

    - BuildScanPerformanceTest

    - DistributedPerformanceTest

      - RerunDistributedPerformanceTest

This PR does a refactoring - extracts a `PerformanceTestReporter`/`DistributedPerformanceTestReporter` out of the `PerformanceTest` hierarchy, because https://github.com/gradle/gradle-private/issues/2192 wants a report, too.

The hierarchy after the refactoring:

- PerformanceTest

 - DistributedPerformanceTest

- PerformanceTestReporter

So we can make things easier. Show less

master + 122 more