Skip to content

Show warning message instead of TestsDialogWindow when no methods/classes available #516

Closed

Description

@volivan239

Description

If user launches "Create tests with UTBot" on a class that has no methods (or no overriden methods), plugin shows a dialog with empty list of methods and disabled "OK" button which seems odd.

image

Expected behavior

Show a warning/error message stating that there are no available methods for test generation.

Potential alternatives

Other ways to clearly inform that there are no methods/classes available for testing.

Activity

  1. moved this to Todo in UTBot Javaon Jul 13, 2022
  2. added
    ctg-enhancementNew feature, improvement or change request
    comp-uiImprovements of plugin UI appearence and functionality
    on Jul 13, 2022
  3. volivan239 commented on Jul 15, 2022

    @volivan239
    CollaboratorAuthor

    It was decided that in above example we should just disable action and do not show anything; but we should show info message in case we create tests for package and no methods were found for listed classes

  4. self-assigned this
    on Jul 15, 2022
  5. Repository owner moved this from Todo to Done in UTBot Javaon Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions