Skip to main content

Improved unittest test runner

Project description

Run Python unittests automatically. Re-run tests when source has changed. Try to make intelligent decisions about which tests to run.

Example

In project directory with unittests:

$ autocheck discover -v

Accepts the same options as python -m unittest.

Installation

$ pip install autocheck

Optionally, for Growl support:

$ pip install gntp

Install watchdog kernel support according to https://pythonhosted.org/watchdog/installation.html.

Django support

Add autocheck to installed apps:

INSTALLED_APPS = (
    ...
    'autocheck.contrib.django',
    ...
)

Run tests:

$ autocheck

Tests

Install test requirements:

$ pip install -r requirements.txt
$ pip install -r requirements/test.txt

For Python-2.6 additionaly:

$ pip install -r requirements/python-2.6.txt

Run in project directory:

$ PYTHONPATH=. ./bin/autocheck discover -v --once

TODO

  • make autocheck.autorunner file pattern configurable

License

This is free and unencumbered software released into the public domain.

see UNLICENSE

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

autocheck-0.2.3-py2.py3-none-any.whl (87.8 kB view hashes)

Uploaded Python 2 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