Skip to content

Make new SpringBoot Test "args" support properties resolution and take part of the context hierarchy id #20865

Closed
@nightswimmings

Description

@nightswimmings

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions