Continiously runs pytest on changes in *.py files
Project description
A simple watcher for pytest
Overview
pytest-watcher is a tool to automatically rerun pytest
when your code changes.
It looks for the following events:
- New
*.py
file created - Existing
*.py
file modified - Existing
*.py
file deleted
What about pytest-watch?
pytest-watch was around for a long time and was solving exactly this problem. Sadly, pytest-watch
is not maintained anymore and not working for many users. I wrote this tool as a substitute
Install pytest-watcher
pip install pytest-watcher
Usage
Specify the path that you want to watch:
ptw .
or
ptw /home/repos/project
Any arguments after <path>
will be forwarded to pytest
:
ptw . -x --lf --nf
Compatibility
The utility is OS independent and should be able to work with any platform.
Code is tested for Python versions 3.6+
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-watcher-0.2.5.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pytest_watcher-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a15b3c7c6babefdee51da2d62851f109e2d2d65c64f72da04f97f0a9569ab74 |
|
MD5 | f4f1e769ec9628b04fe55486a1f06da2 |
|
BLAKE2b-256 | 34700cf1c77d7ea6201772c26c34761719b300f2348d2e46597467d29f41d9cb |