PyCharm Odoo 2023.9

Hello world!

Last month, I introduced a new run configuration type for Odoo. This month, that feature continues to be improved further with the Odoo testing integration.

PyCharm has built-in test runners for some popular test frameworks such as unittest, pytest,... Odoo uses the unittest framework for its tests, but you cannot run tests using the built-in unittest runner in PyCharm. Many Odoo developers use pytest and the pytest-odoo plugin to run tests instead of running odoo-bin with --test-enable​.

As of version 2023.9, you can run tests using odoo-bin, but with much better integration with PyCharm. Now, let me show you the results: