UTBotJava icon indicating copy to clipboard operation
UTBotJava copied to clipboard

Investigate automatic creation of Spring @TestConfiguration for a user project

Open alisevych opened this issue 3 years ago • 0 comments

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.

alisevych avatar Aug 16 '23 14:08 alisevych