aboutsummaryrefslogtreecommitdiffstats
path: root/run-tests.py
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 /run-tests.py
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 'run-tests.py')
-rwxr-xr-xrun-tests.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/run-tests.py b/run-tests.py
deleted file mode 100755
index 5748953..0000000
--- a/run-tests.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-
-import tests
-import os
-import sys
-
-if len(sys.argv) > 1 and sys.argv[1] == "update":
- if len(sys.argv) > 2:
- config = tests.get_config(os.path.dirname(sys.argv[2]))
- root, ext = os.path.splitext(sys.argv[2])
- if ext == config.get(
- config.get_section(os.path.basename(root)), 'input_ext'
- ):
- tests.generate(root, config)
- else:
- print(
- sys.argv[2],
- 'does not have a valid file extension. Check config.'
- )
- else:
- tests.generate_all()
-else:
- tests.run()