pycharm-odoo icon indicating copy to clipboard operation
pycharm-odoo copied to clipboard

support for selected test run/debug in docker (or at least venv)

Open dz0 opened this issue 2 years ago • 4 comments

Hi,

I know this is not the functionality you currently target, but you might know context :)

I am struggling to setup tests running/debugg'ing via https://www.jetbrains.com/help/pycharm/using-docker-as-a-remote-interpreter.html#run

maybe you have some hints or suggestions...

for example, for Django pycharm has some helpers, maybe they can be applied to odoo?

ps.: also is it possible to setup Python Console to be bound to docker env

dz0 avatar Aug 10 '22 12:08 dz0

Hi @dz0 ,

What version of PyCharm are you using?

trinhanhngoc avatar Aug 11 '22 04:08 trinhanhngoc

What version of PyCharm are you using?

PyCharm 2022.1.1 (Professional Edition) Build #PY-221.5591.52, built on May 10, 2022

on Ubuntu 20.04

dz0 avatar Aug 11 '22 07:08 dz0

maybe found a non-docker way (haven't tried) https://github.com/camptocamp/pytest-odoo/issues/31#issuecomment-489579074

dz0 avatar Aug 11 '22 09:08 dz0

@dz0

I tried running/debugging Odoo with Docker in PyCharm 2022.2 but due to some regression issues in PyCharm 2022.2, I could not do it. I will try again after JetBrains releases PyCharm 2022.2.1. Anyway, what problem do you have with venv?

trinhanhngoc avatar Aug 11 '22 10:08 trinhanhngoc