Added a new module for Pycharm plugin utbot-python-pycharm. When you set ideType=PC/PY this module will be activated and utbot-intellij-main will be deactivated.
Fixes #2720
How to test
Manual tests
IDEA
1.1. Set ideType=IC and run :utbot-intellij-main:runIde
1.2.1. Open Java project and try to generate tests
1.2.2. Expected: Tests have been generated
1.3.1. Open Python project and try to generate tests
1.3.2. Expected: Tests have been generated
1.3.3. Open Utbot plugin in settings and check that it names "UnitTestBot"
Pycharm
2.1. Set ideType=PC and run :utbot-python-pycharm:runIde
2.2.1. Open Java project and try to generate tests
2.2.2. Expected: You cannot generate tests
2.3.1. Open Python project and try to generate tests
2.3.2. Expected: Tests have been generated
2.3.3. Open Utbot plugin in settings and check that it names "UnitTestBot for Python"
Self-check list
Check off the item if the statement is true. Hint: [x] is a marked item.
Please do not delete the list or its items.
[x] I've set the proper labels for my PR (at least, for category and component).
[x] PR title and description are clear and intelligible.
[x] I've added enough comments to my code, particularly in hard-to-understand areas.
[ ] The functionality I've repaired, changed or added is covered with automated tests.
[x] Manual tests have been provided optionally.
[ ] The documentation for the functionality I've been working on is up-to-date.
Description
Added a new module for Pycharm plugin
utbot-python-pycharm
. When you setideType=PC/PY
this module will be activated andutbot-intellij-main
will be deactivated.Fixes #2720
How to test
Manual tests
ideType=IC
and run:utbot-intellij-main:runIde
1.2.1. Open Java project and try to generate tests 1.2.2. Expected: Tests have been generated 1.3.1. Open Python project and try to generate tests 1.3.2. Expected: Tests have been generated 1.3.3. Open Utbot plugin in settings and check that it names "UnitTestBot"ideType=PC
and run:utbot-python-pycharm:runIde
2.2.1. Open Java project and try to generate tests 2.2.2. Expected: You cannot generate tests 2.3.1. Open Python project and try to generate tests 2.3.2. Expected: Tests have been generated 2.3.3. Open Utbot plugin in settings and check that it names "UnitTestBot for Python"Self-check list
Check off the item if the statement is true. Hint: [x] is a marked item.
Please do not delete the list or its items.