Skip to content

Commit 0b42ca5

Browse files
committed
Require pytest-cov, latest versions of pytest,pytest-cov,pyest-runner
* Credits: audreyfeldroy#594
1 parent 9354b23 commit 0b42ca5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

{{cookiecutter.project_slug}}/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ lint: ## check style with flake8
5252

5353
test: ## run tests quickly with the default Python
5454
{%- if cookiecutter.use_pytest == 'y' %}
55-
pytest
55+
pytest -v --cov={{ cookiecutter.project_slug }} --cov-report=term-missing
5656
{%- else %}
5757
python setup.py test
5858
{%- endif %}

{{cookiecutter.project_slug}}/requirements_dev.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ wheel==0.33.6
44
watchdog==0.9.0
55
flake8==3.7.8
66
tox==3.14.0
7-
coverage==4.5.4
7+
coverage==5.2
88
Sphinx==1.8.5
99
twine==1.14.0
1010
{% if cookiecutter.command_line_interface|lower == 'click' -%}
1111
Click==7.0{% endif %}
1212
{% if cookiecutter.use_pytest == 'y' -%}
13-
pytest==6.2.4{% endif %}
13+
pytest==5.4.3
14+
pytest-cov==2.10.0
15+
pytest-runner==5.2{% endif %}

{{cookiecutter.project_slug}}/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
requirements = [{%- if cookiecutter.command_line_interface|lower == 'click' %}'Click>=7.0',{%- endif %} ]
1414

15-
test_requirements = [{%- if cookiecutter.use_pytest == 'y' %}'pytest>=3',{%- endif %} ]
15+
test_requirements = [{%- if cookiecutter.use_pytest == 'y' %}'pytest-cov>=2.10.0',{%- endif %} ]
1616

1717
{%- set license_classifiers = {
1818
'MIT license': 'License :: OSI Approved :: MIT License',
@@ -37,7 +37,8 @@
3737
'Programming Language :: Python :: 3.6',
3838
'Programming Language :: Python :: 3.7',
3939
'Programming Language :: Python :: 3.8',
40-
],
40+
'Programming Language :: Python :: 3.9',
41+
],
4142
description="{{ cookiecutter.project_short_description }}",
4243
{%- if 'no' not in cookiecutter.command_line_interface|lower %}
4344
entry_points={

0 commit comments

Comments
 (0)