Skip to content

Fix disabled action #1481

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

Merged
merged 2 commits into from
Dec 8, 2022
Merged

Fix disabled action #1481

merged 2 commits into from
Dec 8, 2022

Conversation

tamarinvs19
Copy link
Collaborator

Description

Added language support check before showing actions menu.
Added python test generation from file.

Fixes #1479

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual Scenario

  1. Open python project in IntelliJ IDEA.
  2. Set python SDK
  3. Right-click on python file. If this file contains python function on class action Generate Tests with UnitTestBot... should be active.
  4. Right-click on *.xml, *.json, *.exe, ... (unsupported language). Action Generate Tests with UnitTestBot... should be disable.

Checklist (remove irrelevant options):

This is the author self-check list

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • No new warnings
  • All tests pass locally with my changes

@tamarinvs19 tamarinvs19 merged commit dd5179b into main Dec 8, 2022
@tamarinvs19 tamarinvs19 deleted the tamarinvs19/fix-disabled-action branch December 8, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UnitTestBot action is disabled for .py and enabled for .xml, .exe and others in Project view
2 participants