Skip to main content

Continiously runs pytest on changes in *.py files

Project description

A simple watcher for pytest

PyPI PyPI - Python Version GitHub

Overview

pytest-watcher is a tool to automatically rerun pytest when your code changes. It looks for *.py files changes in a directory that you specify. pytest will be automatically invoked when you create new files and modify or delete existing.

Install pytest-watcher

pip install pytest-watcher

Usage

Specify the path that you want to watch:

ptw .

or

ptw /home/repos/project

Any additional arguments will be forwarded to pytest:

ptw . -x --lf --nf

Compatibility

The utility is OS independent and should work on any platform.

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

Uploaded Source

Built Distribution

pytest_watcher-0.2.1-py3-none-any.whl (5.0 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