Skip to main content

Continiously watches for changes in your python files and runs pytest

Reason this release was yanked:

Change command name

Project description

A simple watcher for pytest

PyPI PyPI - Python Version GitHub

Overview

pytest-watcher is a tool to automatically rerun pytest whenever any .py file changes in your project. It uses Linux inotify API for event monitoring via python inotify library.

pytest invocation will be triggered when you change, delete or create new python files in watched directory.

Install pytest-watcher

pip install pytest-watcher

Usage

Specify the path that you want to watch:

pytest-watcher .

or

pytest-watcher /home/repos/project

Any additional arguments will be forwarded to pytest:

pytest-watcher . -x --lf --nf

Compatibility

This utility should be compatible with any Linux-based Operating System. Because it relies on inotify API, using on MacOS or Windows is not currently possible.

Library code is tested for Python versions 3.6+

Project details


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.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

pytest_watcher-0.2.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page