UnitTestBot is the tool for automated unit test generation available as an IntelliJ IDEA plugin, or a command-line interface.
Now UnitTestBot provides fuzzing-based support for Python.
- IntelliJ IDEA — for compatibility, see UnitTestBot on JetBrains Marketplace.
- Python 3.8 or later
- Python plugin for IntelliJ IDEA
If you already have a Python project, you usually have no need to install or configure anything else, but if you have trouble with launching UnitTestBot for Python code, please refer to advanced requirements section.
To try UnitTestBot Python in your IntelliJ IDEA:
-
To install the plugin, please refer to UnitTestBot user guide.
-
Configure the Python interpreter for your project and make sure IntelliJ IDEA resolves all the imports.
-
In your IntelliJ IDEA, go to File > Settings > Tools, choose UnitTestBot and enable Experimental languages support.
(!) NOTE: be sure to enable this option for each project.
-
To generate tests, place the caret at the required function and press Alt+Shift+U. To find the appropriate shortcut for the OS you are using, check the context menu.
To use UnitTestBot Python via command-line interface, please refer to the CLI guide.
To get information on contributing and getting support, please see UnitTestBot Java Readme.