Closed aartikov closed 4 years ago
Yes, it's true. But I have some draft ideas about how to fix it. The outcome will be like:
class KaspressoConfiguringTest : TestCase(
kaspressoBuilder = Kaspresso.Builder().apply {
screenshots = ScreenshotsImpl(libLogger, activities)
}.default()
) {
Is it ok?
@matzuk Yes, it looks fine.
It is hard to change something in the default Kaspresso.Builder without breaking of consistency. For example, to change a screenshots directory this code is required:
Without calls of
replaceAll
interceptors will use old screenshots implementation.Can this api be more convenient?