UnitTestBot / UTBotJava

Automated unit test generation and precise code analysis for Java
Apache License 2.0
137 stars 43 forks source link

Save Spring related settings if changed by user #2643

Closed alisevych closed 11 months ago

alisevych commented 1 year ago

Description

Save Spring related settings selected by User on action dialog. Spring configuration, Test type, Active profile(s), Mocking strategy, Mock static methods - their changes from default should be saved and applied on the next dialog opening.

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA 2023.2
  2. Open spring-petclinic project
  3. Generate tests for Owner class with the following changed settings:
  1. Wait generation is finished
  2. Reopen action dialog for the same/different class

Expected behavior

On step 3 changed settings should be saved in .idea/utbot-settings.xml On step 5 the settings used for test generation should be applied.

Actual behavior

Testing framework JUnit 4 is saved and applied. Spring configuration is selected by default - No Configuration.

Screenshots, logs

Step 3:

image

Step 5:

image

Environment

IntelliJ IDEA Ultimate/Community 2023.2 (supported versions)