{"repo":"olzhasar/pytest-watcher","free":true,"listed":false,"github":"https://github.com/olzhasar/pytest-watcher","clone":"git clone https://github.com/olzhasar/pytest-watcher.git","description":"Automatically rerun your tests on file modifications","language":"Python","stars":223,"topics":["pytest","python","testing-tools","watcher","tdd","tdd-python","watchdog","test-driven-development","testing","watch"],"license":"MIT","category":"dev-tools","readme_excerpt":"Welcome to pytest-watcher Overview pytest-watcher is a tool to automatically rerun tests (using pytest by default) whenever your code changes. Works on Unix (Linux, MacOS, BSD) and Windows. Example: Table of contents - Motivation - File Events - Installation - Usage - Using a different test runner - Watching different patterns - Delay - Differences with pytest-watch - Configuring - Compatibility - License Motivation Why not general tools - Easy to use and remember - Works for most Python projects out of the box - Uses native system monitoring API instead of polling on supported systems (see watchdog documentation) - Listens for new file, delete file, change and move events - Runs your tests with latest changes in case of post-processing events (see delay) - Has an interactive mode with handy keyboard shortcuts (Currently only available on POSIX systems) What about pytest-watch pytest-watch has been around for a long time and used to address exactly this problem. Unfortunately, pytest-watch is no longer maintained and doesn't work for many users. This project provides an alternative for it. See also: Differences with pytest-watch File events By default pytest-watcher looks for the following events: - New .py file created - Existing .py file modified - Existing .py file deleted - A .py file moved either from or to the watched path You can specify alternative file patterns to watch. See Watching different patterns Installation Usage Specify the path that you want to watch: or py","default_branch":null,"files":null,"tree":[],"storefront":"/r/olzhasar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/olzhasar/pytest-watcher/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}