Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve plugin behavior classes/packages with no methods #516 #533

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

volivan239
Copy link
Collaborator

@volivan239 volivan239 commented Jul 15, 2022

Description

  • When choosing class with no methods available for testing, Generate tests with UTBot... is now disabled
  • When launching plugin on a package with no methods found, Info message is now shown

Fixes #516

Type of Change

Please delete options that are not relevant.

  • Minor bug fix (non-breaking small changes)

How Has This Been Tested?

Automated Testing

No new tests were added

Manual Scenario

  • Try Alt+Shift+U while on a class with no methods -- nothing happens
  • Try Alt+Shift+U on a package with classes that have no methods -- an info message is shown

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • Tests that prove my change is effective
  • All tests pass locally with my changes

@volivan239 volivan239 marked this pull request as ready for review July 15, 2022 13:21
"No methods for test generation were found among selected items",
"No methods found")
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we return here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added return

@volivan239 volivan239 merged commit 4f9cc2e into main Jul 18, 2022
@volivan239 volivan239 deleted the volivan239/plugin-ui-when-no-methods-available branch July 18, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Show warning message instead of TestsDialogWindow when no methods/classes available
2 participants