Skip to content

Commit

Permalink
Make invoke command discover and run doctests in the scrapi module
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianvf committed Sep 15, 2015
1 parent b02c3a0 commit 4e03402
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ def elasticsearch():


@task
def test(cov=True, verbose=False, debug=False):
def test(cov=True, verbose=False, debug=False, doctests=True):
"""
Runs all tests in the 'tests/' directory
"""
cmd = 'py.test tests'
cmd = 'py.test scrapi tests'
if doctests:
cmd += ' --doctest-modules'
if verbose:
cmd += ' -v'
if debug:
Expand Down

0 comments on commit 4e03402

Please sign in to comment.