Skip to main content

Autotest Python unittest modules

Project description

This is a utility to provide continuous testing during development. It watches for changes in source and test files and will run the test suite when a change is detected.

Additionally, pyautotest supports posting notifications on Mac OS X using Notification Center and libnotify on Linux.

Install

Pip:

pip install pyautotest

Source:

python setup.py install

How to Use

A utility is created autotest that can be run at the root of your Python project. It will use unittest’s discover feature to find tests. It will watch for any *.py files from the current directory recursively:

usage: autotest [-h] [-l L]

Continuously run unit tests when changes detected

optional arguments:
  -h, --help           show this help message and exit
  -l L, --log-level L  set logger level

Optionally, you can run directly from Python using the following:

python -m pyautotest.cli

Dependencies

Required:

Optional:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

pyautotest-0.1.0.zip (9.7 kB view hashes)

Uploaded Source

pyautotest-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distributions

pyautotest-0.1.0-py3.3.egg (9.8 kB view hashes)

Uploaded Source

pyautotest-0.1.0-py2.7.egg (9.6 kB view hashes)

Uploaded Source

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