Skip to main content

Automatic test execution on file changes

Project description

# Why

Because unit testing is even more fun

* when you don't have to switch out of your editor to get feedback from unit tests.
* the shorter the feedback period is till you get feedback from your tests.

I've seen the usefullness toying with rubys autotest command, so I pestered Felix to build something like this, and after using it for about a two years, I finally got around to packaging it. :-)

In addition to that it's brain dead simple, has no dependencies and is _really_ small.

# Usage

% watching_testrunner --help
Usage: watching_testrunner [options] command [arguments...]

Options:
-h, --help show this help message and exit
-b BASEPATH, --basepath=BASEPATH
base path to watch for changes
-p WATCH_WILDCARD, --pattern=WATCH_WILDCARD
glob-style pattern for file names to watch

# Examples

$ watching_testrunner nosetessts $NOSETESTS_ARGUMENTS

This will run nosetests whenever any python file below the current directory changes

$ watching_testrunner --basepath foo/bar --pattern="*" nosetessts $NOSETESTS_ARGUMENTS

This will run nosetests whenever any file below ./foo/bar changes.

$ watching_testrunner --basepath path/to/js_tests --pattern="*.js" jasmine --console

This will run jasmine --console whenever any js file below ./path/to/js_tests changes (i.e. you can use the watching testrunner to get auto test execution using any tool for any language)

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

watching_testrunner-1.0-py2.7.egg (4.9 kB view details)

Uploaded Egg

File details

Details for the file watching_testrunner-1.0-py2.7.egg.

File metadata

File hashes

Hashes for watching_testrunner-1.0-py2.7.egg
Algorithm Hash digest
SHA256 949e8edd54f71d0f37cb93a4fbd12f99888373fa7aae18a807008d2b4e6ff6f9
MD5 234e407731cdb7dd65b4ec693de782a6
BLAKE2b-256 98cbe2fc2d0c349c53c631d232ef70d50811888805a5956e0e8785f73d9c131b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page