diff --git a/{{cookiecutter.project_slug}}/Makefile b/{{cookiecutter.project_slug}}/Makefile index c63920dbc..63267a14e 100644 --- a/{{cookiecutter.project_slug}}/Makefile +++ b/{{cookiecutter.project_slug}}/Makefile @@ -52,7 +52,7 @@ lint: ## check style with flake8 test: ## run tests quickly with the default Python {%- if cookiecutter.use_pytest == 'y' %} - pytest + pytest -v --cov={{ cookiecutter.project_slug }} --cov-report=term-missing {%- else %} python setup.py test {%- endif %} diff --git a/{{cookiecutter.project_slug}}/requirements_dev.txt b/{{cookiecutter.project_slug}}/requirements_dev.txt index f7984b22d..351825b8f 100644 --- a/{{cookiecutter.project_slug}}/requirements_dev.txt +++ b/{{cookiecutter.project_slug}}/requirements_dev.txt @@ -4,11 +4,12 @@ wheel==0.33.6 watchdog==0.9.0 flake8==3.7.8 tox==3.14.0 -coverage==4.5.4 +coverage==5.2 Sphinx==1.8.5 twine==1.14.0 {% if cookiecutter.command_line_interface|lower == 'click' -%} Click==7.0{% endif %} {% if cookiecutter.use_pytest == 'y' -%} -pytest==4.6.5 -pytest-runner==5.1{% endif %} \ No newline at end of file +pytest==5.4.3 +pytest-cov==2.10.0 +pytest-runner==5.2{% endif %} diff --git a/{{cookiecutter.project_slug}}/setup.py b/{{cookiecutter.project_slug}}/setup.py index 04054e7fd..bdc8e971a 100644 --- a/{{cookiecutter.project_slug}}/setup.py +++ b/{{cookiecutter.project_slug}}/setup.py @@ -14,7 +14,7 @@ setup_requirements = [{%- if cookiecutter.use_pytest == 'y' %}'pytest-runner',{%- endif %} ] -test_requirements = [{%- if cookiecutter.use_pytest == 'y' %}'pytest>=3',{%- endif %} ] +test_requirements = [{%- if cookiecutter.use_pytest == 'y' %}'pytest-cov>=2.10.0',{%- endif %} ] {%- set license_classifiers = { 'MIT license': 'License :: OSI Approved :: MIT License',