Replies: 1 comment
-
Ah, I see now that reading the fine print tells you that it has no Instance. so at least it's documented, but it's still awkward to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was surprised that the ExtensionContext provided to postProcessInstance has neither Method nor Instance in it.
With a lifecycle of PER_METHOD, I expected every instance to have a corresponding method.
Yes, postProcess does receive an
instance
parameter independently of its context,but I am trying to share code with a ParameterResolver.
I fear it will be messy to teach that code that sometimes the ExtensionContext is sufficient
and sometimes it needs AdditionalStuffBeyondContext.
My goal is to have have a resource in ExtensionContext.Store with the same lifespan as
the TestInstance Lifecycle. Sounds like a simple use case but I'm tripping over a lot of ways to do it wrong.
Beta Was this translation helpful? Give feedback.
All reactions