Add makefile for short test command lines (cf #45) #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Also make test/python_tests/image_encoding_speed_test.py compliant
with nosetest runner.
This would allow to run tests like:
make test
: (default command, run all tests)make test test/python_tests/image_encoding_speed_test.py
: run test of given file or directory onlymake test_verbose [test/python_tests/image_encoding_speed_test.py]
run test without string capture (useful when we have custom prints), and just likemake test
can take a file or directory as argumentmake tdd
: run tests and stop at first failing test, running a pdb debugger for investigation, can take a file or directory as parametermake test_failed
: rerun failed tests from last runmake help
: in case one have a memory black out ;)All this can be done simply par running
nosetests
with the correct arguments, but the idea of the Makefile is to have the common needs so we don't have to remember the nose command line arguments.This has been tested both on python 2.7 and python 3.4.