-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add makefile for short test command lines (cf #45)
Also make test/python_tests/image_encoding_speed_test.py compliant with nosetest runner.
- Loading branch information
1 parent
91f8b79
commit 6a5efb7
Showing
3 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ mapnik/paths.py | |
.mason/ | ||
mason_packages/ | ||
mapnik/plugins | ||
.noseids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.PHONY: help test test_verbose tdd test_failed | ||
|
||
TEST := nosetests --logging-clear-handlers --with-id | ||
|
||
help: | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@echo " test to run all the test suite" | ||
@echo " test_verbose to run all the test suite without output capture" | ||
@echo " tdd to run all the test suite, but stop on the first error" | ||
@echo " test_failed to rerun the failed tests from the previous run" | ||
|
||
test: | ||
$(TEST) $(filter-out $@,$(MAKECMDGOALS)) | ||
|
||
test_verbose: | ||
$(TEST) -s $(filter-out $@,$(MAKECMDGOALS)) | ||
|
||
tdd: | ||
$(TEST) --stop --pdb $(filter-out $@,$(MAKECMDGOALS)) | ||
|
||
test_failed: | ||
python setup.py nosetests --logging-clear-handlers --with-id -vv --failed $(ARGS) | ||
|
||
$(phony %): | ||
@: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters