UnitTestBot / UTBotJava

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

Align `Active profile(s)` field with surrounding #2483

Open tyuldashev opened 1 year ago

tyuldashev commented 1 year ago

Description In Spring test generation dialog right border of Active profile(s) field is not aligned.

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA
  2. Open some Spring project
  3. Invoke test generation dialog

Expected behavior Active profile(s) is aligned with surrounding fields and have the same width as Test types and Mocking Strategy

Actual behavior image

alisevych commented 1 year ago

@tyuldashev @EgorkaKulikov Here are IntelliJ Platform Layout Guidelines. There is the requirement to Align the right borders of input boxes that have a similar length

However Tests type and Active profile(s) depend on Spring configuration. So this part of guidelines would be appropriate to apply. Mocking strategy also depends on Spring configuration - if an existing configuration is chosen. Parameterized tests cannot be selected in Spring test generation at all and is always disabled.

I suggest to make the following changes to the action dialog:

  1. Remove Parameterized tests from UI if Spring-based flow is applied.
  2. Align Tests type, Active profile(s), Mocking strategy with the left border of Spring configuration combo box.
  3. Right-align them.
alisevych commented 1 year ago

Related to: