Open skuzzle opened 1 year ago
We should enhance the DSL so that all the options that can be configured via @SnapshotTestOptions can also be configured via the DSL like
@SnapshotTestOptions
@Test void someTest(Snapshot snapshot) { snapshot.withOptions(options -> options .withtextDiffContextLines(10) .withalwaysPersistActualResult(true)) ... }
This solution is kind of in conflict with the current SnapshotConfiguration class approach which serves partly the same use case but isn't configurable from public API.
SnapshotConfiguration
Solving this might require deeper refactorings in the core module
We should enhance the DSL so that all the options that can be configured via
@SnapshotTestOptions
can also be configured via the DSL likeThis solution is kind of in conflict with the current
SnapshotConfiguration
class approach which serves partly the same use case but isn't configurable from public API.Solving this might require deeper refactorings in the core module