From 70d52148d19e4465cce5ffccbe741d9a7434fa5b Mon Sep 17 00:00:00 2001 From: shangtai Date: Mon, 5 Aug 2024 15:59:27 +0800 Subject: [PATCH] Update pyproject.toml fixing cov --- pyproject.toml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 603e829..8191424 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,8 +27,14 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] -pythonpath = [ - "src" +testpaths = ['tests/'] +filterwarnings = ['ignore::RuntimeWarning'] +addopts = [ + '--cov=qibo', + '--cov-append', + '--cov-report=xml', + '--cov-report=html', + '--durations=60', ] [tool.poe.tasks] @@ -38,3 +44,5 @@ lint-warnings = "pylint src --exit-zero" docs = "make -C doc html" docs-clean = "make -C doc clean" test-docs = "make -C doc doctest" + +