Skip to content

Add setting to switch between Spring specific and regular Java flow #2472

Open
@alisevych

Description

@alisevych

Description

In Settings -> Tools -> UnitTestBot:

  • Add setting switch between Spring specific and regular Java flow (in Spring projects)

Expected behavior

If Spring support setting is turned ON - and the project has Spring dependencies - Spring-specific test generation should be applied. Action dialog should be changed to Spring-specific.
Parameterized tests should not be displayed.

In all other cases - regular Java test generation should be applied.
Action dialog UI should be regular, without Spring-specific logic and controls.

Environment

IntelliJ IDEA Ultimate / Community
Projects with and without Spring dependencies

Potential alternatives

Currently there are two plugin JAR-files generated: with and without Spring support.
It is not the best solution for several reasons:

  1. User should install/reinstall plugin - if they first used it in a Java project - and then want to use it in Spring project. Or vice a versa.
  2. Several artefacts support.

Context

See https://github.com/UnitTestBot/UTBotJava/actions/runs/5735792610

image

Both IU and IC plugins can be installed on IntelliJ IDEA Ultimate and Community.
Plugin size with and without Spring differs not critically: 34 MB maximum (168 vs 134)

Metadata

Metadata

Assignees

Labels

comp-settingsIssue is related to settingscomp-springIssue is related to Spring projects supportcomp-uiImprovements of plugin UI appearence and functionalityctg-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