aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2018-01-06 01:04:11 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2018-01-08 20:41:18 -0500
commit49249b3fb6c458c2cbc34c409ba57cfae6e72320 (patch)
treee5cdbb09bf193f40ccc8735679d93a8c14aa591a /makefile
parent76e0a63e12dd964311c4350a5735bb7f51ef87a6 (diff)
downloadmarkdown-49249b3fb6c458c2cbc34c409ba57cfae6e72320.tar.gz
markdown-49249b3fb6c458c2cbc34c409ba57cfae6e72320.tar.bz2
markdown-49249b3fb6c458c2cbc34c409ba57cfae6e72320.zip
Switch from nose to unittest
All file-based tests are now defined as unittest test cases via a metaclass which walks a directory and builds a unittest for each pair of test files. To run the tests just run `python -m unittest discover tests`. Or use tox as the tox config has been updated to run the new tests and all nose specific code has been removed. The test generator tools have been removed as well. If any changes or additions need to be made to tests, they should be implemented using the new framework rather than with the file-based tests. Eventually, only the PHP and pl tests should remain as file-based tests.
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/makefile b/makefile
index 8cfd0ea..3eb7d48 100644
--- a/makefile
+++ b/makefile
@@ -11,7 +11,6 @@ help:
@echo ' build-win Build a Windows exe distribution'
@echo ' docs Build documentation'
@echo ' test Run all tests'
- @echo ' update-tests Generate html files for updated text files in tests'
@echo ' clean Clean up the source directories'
.PHONY : install
@@ -38,11 +37,8 @@ docs:
.PHONY : test
test:
- tox
-
-.PHONY : update-tests
-update-tests:
- python run-tests.py update
+ coverage run --source=markdown -m unittest discover tests
+ coverage report --show-missing
.PHONY : clean
clean: