Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reloadium #29

Open
JamesHutchison opened this issue May 24, 2023 · 3 comments
Open

Reloadium #29

JamesHutchison opened this issue May 24, 2023 · 3 comments

Comments

@JamesHutchison
Copy link
Owner

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.

@JamesHutchison
Copy link
Owner Author

One possible advantage would be the ability to restart the test or current function in the debugger.

@JamesHutchison
Copy link
Owner Author

JamesHutchison commented May 24, 2023

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

@JamesHutchison
Copy link
Owner Author

JamesHutchison commented May 24, 2023

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant