Open JamesHutchison opened 1 year ago
One possible advantage would be the ability to restart the test or current function in the debugger.
So far this isn't working at all for me. Here's trying to launch with the debugger
/usr/bin/env /workspaces/pytest-hot-reloading/.venv/bin/python /home/vscode/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 37007 -- /workspaces/pytest-hot-reloading/.venv/bin/reloadium run -m pytest tests/test_samples.py
Reloadium experienced a fatal error and has to quit.
Please submit a github issue to let us know at https://github.com/reloadware/reloadium
If I try to run with megamock, things error pretty badly a well.
$ RELOADIUMPATH=./tests reloadium run -m pytest tests/test_samples.py
■■■■■■■■■■■■■■■
Reloadium 1.1.1
■■■■■■■■■■■■■■■
If you like this project consider becoming a sponsor or giving a star at https://github.com/reloadware/reloadium
Loaded 0 watched modules so far from paths:
- /workspaces/pytest-hot-reloading/**/*.py
- /workspaces/pytest-hot-reloading/tests/**/*.py
No files are watched.
Editing files will have no effect!
Only files inside current working directory or directories specified in RELOADIUMPATH environmental variable are watched.
============================================================================= test session starts =============================================================================
platform linux -- Python 3.10.11, pytest-7.3.1, pluggy-1.0.0
rootdir: /workspaces/pytest-hot-reloading
configfile: pyproject.toml
collecting ... Performing test collection
collected 0 items / 1 error
=================================================================================== ERRORS ====================================================================================
___________________________________________________________________ ERROR collecting tests/test_samples.py ____________________________________________________________________
/workspaces/pytest-hot-reloading/.venv/lib/python3.10/site-packages/reloadium/corium/ll1llll11111llllIl1l1.py:169: in l1lll11ll1ll111lIl1l1
???
/__w/reloadware/reloadware/reload/package/__obfuscated__/reloadium/fast/lll1111l111l11llIl1l1.py:81: in exec_module
???
... <continues for a while>
Reloadium seems like a good choice if you are using PyCharm. They have a VS Code plugin, at least in source code, but I don't see it in the marketplace.
This ticket is writing notes about it usage.