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 nosetests
This will run nosetests whenever any python file below the current directory changes
$ watching_testrunner -- nosetests $NOSETESTS_ARGUMENTS
Will run nosetests all the same, but will not try to parse any of the nosetests arguments.
$ watching_testrunner --basepath foo/bar --pattern="*" nosetests $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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for watching_testrunner-1.2.0b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2d7e3aeedf48ba181be9a7be4764308d071cbb820797f98cbf44e0dc92f0869 |
|
MD5 | af83fbae82bbafc27647243607ec7285 |
|
BLAKE2b-256 | 1c6e28c39ecc7a6b5d471935175e8f0d3693ccc38e880d2582f687a7e38f8af6 |
Hashes for watching_testrunner-1.2.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad1a5f86b0a38151d290169506504a260d68bd382c0c1c4b5fa8da12093756d8 |
|
MD5 | 23bba23ed39c9060060f805459382302 |
|
BLAKE2b-256 | 771730bcd1a96612571a79f9fdc0019111d8ea1648627432b6b4fe0d79cd71e4 |