Skip to content

Commit 85d3a26

Browse files
committed
add tox and coverage
1 parent e104b68 commit 85d3a26

File tree

5 files changed

+61
-18
lines changed

5 files changed

+61
-18
lines changed

.coveragerc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# .coveragerc to control coverage.py
2+
[run]
3+
# cover branches: https://coverage.readthedocs.io/en/latest/branch.html#branch
4+
branch = True
5+
source = paseto
6+
7+
[report]
8+
show_missing = True

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
# bytecode
66
__pycache__
77
# pytest-cov
8-
.coverage
8+
.coverage
9+
# tox
10+
.tox

poetry.lock

+39-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ pysodium = "^0.7.0"
1212

1313
[tool.poetry.dev-dependencies]
1414
pytest = "^3.9"
15-
pytest-cov = "^2.6"
1615
black = "^18.3-alpha.0"
1716
pylama = "^7.6"
17+
tox = "^3.5"
18+
coverage = "^4.5"
1819

1920
[build-system]
2021
requires = ["poetry>=0.12"]

tox.ini

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tox]
2+
envlist = py36,py37
3+
skipsdist = true
4+
5+
[testenv]
6+
whitelist_externals = poetry
7+
commands_pre = poetry install
8+
commands =
9+
coverage run -m pytest

0 commit comments

Comments
 (0)