Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Assignees
Labels
comp-settingsIssue is related to settings comp-springIssue is related to Spring projects support comp-uiImprovements of plugin UI appearence and functionality ctg-enhancementNew feature, improvement or change request
@alisevych

Description

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

Labels

comp-settingsIssue is related to settings comp-springIssue is related to Spring projects support comp-uiImprovements of plugin UI appearence and functionality ctg-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

      AltStyle によって変換されたページ (->オリジナル) /