Skip to main content
pytest-watch -- Continuous pytest runner
========================================

**pytest-watch** a zero-config CLI tool that runs [pytest][], and reruns it
when a file in your project changes.


Motivation
----------

Whether or not you use the test-driven development method, running tests
continuously is far more productive than waiting until you're finished
programming to test your code. Additionally, manually running `py.test` each
time you want to see if any tests were broken has more wait-time and cognitive
overhead than merely checking the terminal here and there. This could be a
crucial difference when debugging a complex problem or on a tight deadline.


Installation
------------

```bash
$ pip install pytest-watch
```


Usage
-----

```bash
$ cd myproject
$ ptw
* Watching /path/to/myproject
```

It can also be run using the longhand, `py.test.watch`.

Now develop normally and check the terminal every now and then to see if any
tests are broken.


Alternatives
------------

- [xdist][] offers the `--looponfail` (`-f`) option (and distributed testing
options). This instead re-runs only those tests which have failed until you
make them pass. This can be a speed advantage when trying to get all tests
passing, but leave out the discovery of new failures until they do. It also
drops the colors outputted by py.test, whereas pytest-watch doesn't.
- [Nosey][] is the original codebase this was forked from. Nosey runs [nose][]
instead of pytest.


Contributing
------------

1. Check the open issues or open a new issue to start a discussion around
your feature idea or the bug you found
2. Fork the repository
3. Send a pull request


[pytest]: http://pytest.org/
[watchdog]: http://packages.python.org/watchdog
[xdist]: http://pypi.python.org/pypi/pytest-xdist
[nosey]: http://github.com/joeyespo/nosey
[nose]: http://nose.readthedocs.org/en/latest/

Metadata

Release files for pytest-watch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-watch 0.1.0
File Size Uploaded Provenance Actions
pytest-watch-0.1.0.zip 8.7 kB Without provenance Details for pytest-watch-0.1.0.zip

Release files / pytest-watch-0.1.0.zip

Download URL pytest-watch-0.1.0.zip
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
54d4834049112e94eeeb9215aaa9e33151c801dc459d77602135374a01c842d2
BLAKE2b-256 checksum
How to use checksums
808744ad074f6b07b22d6c1c99a999330b09b094f5a7353d503a9b16b7613418
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pytest-watch 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page