Skip to content
Sections
>> Trisquel >> Packages >> xolotl (13.0) >> python >> python3-pytest-watcher
[  xolotl  ]
[ Source: pytest-watcher  ]

Package: python3-pytest-watcher (0.4.3-2)

Automatically rerun tests (pytest by default) when code changes

pytest-watcher is a utility designed to automatically re-run tests whenever your Python code changes. By default, it uses pytest as the test runner but also supports alternatives like tox. It works out-of-the-box for most Python projects and uses the operating system’s native file monitoring APIs - on supported systems - rather than relying in polling.

To ensure tests are executed against the latest code, it supports a configurable delay that accommodates code formatters and other post-processing tools. The utility also features an interactive mode with keyboard shortcuts, supports customizable file patterns to watch or ignore, and provides options for running tests immediately upon startup or clearing the screen before each test run.

pytest-watcher is a modern alternative to the now-unmaintained pytest-watch project. While it was inspired by pytest-watch, it is not a fork and introduces several improvements in configuration, behavior, and compatibility.

Other Packages Related to python3-pytest-watcher

  • depends
  • recommends
  • suggests
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-tomli
    lil' TOML parser for Python
    or python3-supported-min (>= 3.11)
    Package not available
  • dep: python3-watchdog
    Python API and shell utilities to monitor file system events

Download python3-pytest-watcher

Download for all available architectures
Architecture Package Size Installed Size Files
all 11.4 kB55 kB [list of files]