diff options
| author | 2014-06-13 21:51:04 -0300 | |
|---|---|---|
| committer | 2014-06-13 21:51:04 -0300 | |
| commit | 3dddbd8cc879402c2047919bccd20e6697082657 (patch) | |
| tree | 38d6290f37be1d67d91c46027974e6ee3372e232 /dodo.py | |
| parent | 7ac2cf148f7a8ea0de126fed3360b49964ce9b45 (diff) | |
| parent | 58c4878526dec5510f23c812274686787d8724ba (diff) | |
Merge tag 'upstream/7.0.1'
Upstream version 7.0.1
Diffstat (limited to 'dodo.py')
| -rw-r--r-- | dodo.py | 26 |
1 files changed, 17 insertions, 9 deletions
@@ -12,7 +12,7 @@ DOIT_CONFIG = { def recursive_glob(path, pattern): """recursively walk path directories and return files matching the pattern""" - for root, dirnames, filenames in os.walk(path): + for root, dirnames, filenames in os.walk(path, followlinks=True): for filename in fnmatch.filter(filenames, pattern): yield os.path.join(root, filename) @@ -20,8 +20,8 @@ def recursive_glob(path, pattern): def task_flake8(): """flake8 - static check for python files""" yield { - 'name': os.getcwd(), - 'actions': ['flake8 --ignore=E501 .'], + 'name': os.path.join(os.getcwd(), 'nikola'), + 'actions': ['flake8 --ignore=E501 nikola/'], } @@ -56,19 +56,27 @@ def task_locale(): return {'actions': [set_nikola_test_locales], 'verbosity': 2} +def task_doctest(): + """run doctests with py.test""" + return { + 'actions': ['py.test --doctest-modules nikola/'], + 'verbosity': 2, + } + + def task_test(): - """run unit-tests using nose""" + """run unit-tests using py.test""" return { - 'task_dep': ['locale'], - 'actions': ['nosetests --with-doctest --doctest-options=+NORMALIZE_WHITESPACE --logging-filter=-yapsy'], + 'task_dep': ['locale', 'doctest'], + 'actions': ['py.test tests/'], } def task_coverage(): - """run unit-tests using nose""" + """run unit-tests using py.test, with coverage reporting""" return { - 'task_dep': ['locale'], - 'actions': ['nosetests --with-coverage --cover-package=nikola --with-doctest --doctest-options=+NORMALIZE_WHITESPACE --logging-filter=-yapsy'], + 'task_dep': ['locale', 'doctest'], + 'actions': ['py.test --cov nikola --cov-report term-missing tests/'], 'verbosity': 2, } |
