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.1b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011083d0ca3c5840e74e24e542375f2d09149da25d16886ff74c5fde3bd3c996 |
|
MD5 | 18020a4602e30cb1923da1b2881ad0d6 |
|
BLAKE2b-256 | 371fd10d60068ffb78dbd13d0104ca605acdf15eb9b14f0515ccac43d0300729 |
Hashes for watching_testrunner-1.2.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e1d57cc7d5e5567bb8f89a51d20257d3dd84ad79e5e28da2d1d70b90ff69bd |
|
MD5 | f468256ed8005854ddae2ff325337a58 |
|
BLAKE2b-256 | 63fdee556f013ae4ab154d4c532b390b3c300f736446e333a489d854448dab8f |