pytest-hot-reloading is a pytest plugin that enables hot-reloading of tests during development. It watches for changes in your project files and automatically re-runs affected tests, providing immediate feedback without restarting the pytest session. It is currently in an alpha stage, meaning its API and behavior may change. Releases are irregular due to its early development phase.
pip install pytest-hot-reloadingNo compatibility data collected yet for this library.
Install the plugin and simply run pytest as you normally would. The plugin automatically detects changes in your project files and re-runs relevant tests without requiring you to manually restart the pytest command.
Regularly check the GitHub repository for updates and breaking changes. Pin your version in `requirements.txt` to avoid unexpected upgrades, e.g., `pytest-hot-reloading==0.1.0a19`.
If encountering unexpected behavior, try disabling `pytest-hot-reloading` (e.g., `pytest -p no:hot-reloading`) to determine if it's the cause. Consult the documentation for known incompatibilities.
Ensure your `pytest` version is within the supported range (`>=7.0, <9.0`). Upgrade `pytest-hot-reloading` when a version supporting `pytest 9.0+` is released.
Consider adjusting the scope of files being watched if future configuration options become available. For critical tasks, temporarily disable the plugin using `pytest -p no:hot-reloading`.
Ensure the plugin is installed in your active environment: `pip install pytest-hot-reloading`.
First, verify your `pytest` version is compatible (see warnings). Check for other plugins that might interfere: `pytest --trace-config` or try disabling others with `pytest -p no:another-plugin`. Ensure your file system isn't causing issues (e.g., WSL, network drives might require specific configurations).
Manually install the missing dependency: `pip install watchfiles`. Also, ensure your `pip` is up to date (`pip install --upgrade pip`).
No resource links recorded.