Make new SpringBoot Test "args" support properties resolution and take part of the context hierarchy id #20865
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
I think args should behave like properties and allow something like @SpringBootTest(args = "--myargfoo=${test.foo.value}").
Besides, it looks like arg is not considered as context id in order to tell whether reuse the context or not across tests. I had to hack it with a dup like @SpringBootTest(args = "--myargfoo=NValue", property="NValue"). Otherwise context behave as if all tests with diff arguments were the same context (bare @SpringBootTest)
The text was updated successfully, but these errors were encountered: