Closed
Description
Currently, the MethodSource
methods are supposed to not have any parameters, however, it'll help to have parameters to be resolved in these methods if registered similar to Before/After methods.
Along with #2190, this will give access to MethodSource
methods to possibly use Extension.Store
and store any initialized details, which could be purged in @AfterAll
methods
Also, in case of creating dynamic tests using details from a resolved Object, ParameterResolver
can enhance abilities of MethodSource
by a fair bit.
Currently, the way to achieve the same is to have a class implementing ArgumentsProvider
and possibly manage the value of the object there, or have it in the MethodSource
method itself statically initializing it in test class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment