You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the amount of configurable option grows, we must provide a way to merge hierarchically used options. Otherwise it would not be easily possible to refine the used options per test case.
Problem here is, that we need to distinguish between implicit and explicit default values. attribute1 on the test method has an explicit default value which is intended to override a previously configured non-default value. Whereas attribute3 has an implicit default value which is not intended to override a previously configured non-default value
To be finoished:
Merging algorithm:
Traverse the hierarchy from bottom to top, starting at the testMethod
Read @SnapshotTestOptions from current element. If non is present, use SnapshoTestOptions.DEFAULT_OPTIONS
Read desired attribute from the obtained SnapshotTestOptions
If the attribute's value is not its default value, return it immediately
If the attribute's value is its default value, continue traversing the hierarchy until a non-default value is encountered
The text was updated successfully, but these errors were encountered:
After giving this some more thought I think it is best to move away from annotation based config. There is no need for these settings be evaluated statically, so we could just as well move to a programmatic options API. That would be way more flexible and composable
As the amount of configurable option grows, we must provide a way to merge hierarchically used options. Otherwise it would not be easily possible to refine the used options per test case.
Problem here is, that we need to distinguish between implicit and explicit default values.
attribute1
on the test method has an explicit default value which is intended to override a previously configured non-default value. Whereasattribute3
has an implicit default value which is not intended to override a previously configured non-default valueTo be finoished:
Merging algorithm:
testMethod
@SnapshotTestOptions
from current element. If non is present, useSnapshoTestOptions.DEFAULT_OPTIONS
SnapshotTestOptions
The text was updated successfully, but these errors were encountered: