Skip to content

Investigate automatic creation of Spring @TestConfiguration for a user project #2521

Open
@alisevych

Description

@alisevych

Description

Investigate automatic creation of Spring @TestConfiguration for a user project.

Expected behavior

If there is no TestConfiguration in a user project, we can suggest to create one.
Need to investigate, what information is required to do this.
Can we do this automatically? Or with minimal questions to the user?

Environment

IntelliJ IDEA 2023.* Ultimate

Potential alternatives

Ask the user to create TestConfiguration by themselves - if Integration tests generation is selected.

Context

Integration tests generation in UnitTestBot starts SpringApplication with selected configuration.
If there are unsafe operations in user code, they can be executed and there is a potential risk of corrupting or posting sensitive data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-springIssue is related to Spring projects supportctg-enhancementNew feature, improvement or change request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions