Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add makefile for short test command lines (cf #45) #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yohanboniface
Copy link
Member

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 only
  • make test_verbose [test/python_tests/image_encoding_speed_test.py] run test without string capture (useful when we have custom prints), and just like make test can take a file or directory as argument
    make tdd: run tests and stop at first failing test, running a pdb debugger for investigation, can take a file or directory as parameter
  • make test_failed: rerun failed tests from last run
  • make 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.

Also make test/python_tests/image_encoding_speed_test.py compliant
with nosetest runner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant