From 7f2437f7efb3014c0a6444a059e339035fd17d9e Mon Sep 17 00:00:00 2001 From: Hugo bessa Date: Wed, 6 Nov 2024 00:52:17 -0300 Subject: [PATCH] Adds pytest-cov --- poetry.lock | 20 +++++++++++++++++++- pyproject.toml | 1 + tox.ini | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index c0de6b5..67c4fa0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -471,6 +471,24 @@ tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +[[package]] +name = "pytest-cov" +version = "6.0.0" +description = "Pytest plugin for measuring coverage." +optional = false +python-versions = ">=3.9" +files = [ + {file = "pytest-cov-6.0.0.tar.gz", hash = "sha256:fde0b595ca248bb8e2d76f020b465f3b107c9632e6a1d1705f17834c89dcadc0"}, + {file = "pytest_cov-6.0.0-py3-none-any.whl", hash = "sha256:eee6f1b9e61008bd34975a4d5bab25801eb31898b032dd55addc93e96fcaaa35"}, +] + +[package.dependencies] +coverage = {version = ">=7.5", extras = ["toml"]} +pytest = ">=4.6" + +[package.extras] +testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] + [[package]] name = "pytest-xdist" version = "3.6.1" @@ -627,4 +645,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = "<3.13,>=3.9" -content-hash = "47a4c969f53358ba41ebfb1ed1acbb737c63f32ce6e1604f45f00f09ee743d1b" +content-hash = "96e608a285703544d3c6b8033333e2b6c25f0d718dfa00664c73e49911764cb9" diff --git a/pyproject.toml b/pyproject.toml index c496e48..cbf20fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,7 @@ tox = "^4.23.2" pytest = "^8.3.3" pytest-xdist = {version = "^3.6.1", extras=["psutil"]} coveralls = "^4.0.1" +pytest-cov = "^6.0.0" [build-system] requires = ["poetry-core"] diff --git a/tox.ini b/tox.ini index 16ff974..151377e 100644 --- a/tox.ini +++ b/tox.ini @@ -23,4 +23,4 @@ passenv = commands_pre = poetry install --with dev commands = - poetry run pytest -n auto {posargs} \ No newline at end of file + poetry run pytest -n auto --cov vintasend {posargs} \ No newline at end of file