Metadata-Version: 2.1
Name: pytest-watcher
Version: 0.1.1
Summary: Continiously watches for changes in your python files and runs pytest
Home-page: https://github.com/olzhasar/pytest-watcher
License: MIT
Keywords: pytest,watch,watcher
Author: olzhasar
Author-email: o.arystanov@gmail.com
Requires-Python: >=3.6.2,<4.0.0
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Dist: inotify (>=0.2.10,<0.3.0)
Project-URL: Repository, https://github.com/olzhasar/pytest-watcher
Description-Content-Type: text/markdown

# A simple watcher for pytest

## Overview

**pytest-watcher** is a tool to automatically rerun `pytest` whenever any `.py` file changes in your project.
It uses Linux [inotify API](https://man7.org/linux/man-pages/man7/inotify.7.html) for event monitoring via python [inotify library](https://pypi.org/project/inotify/).

`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+

