diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..c712d25 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = tests/* diff --git a/pyproject.toml b/pyproject.toml index 0f88c77..d41d36d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,3 +36,6 @@ build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] mobilizon-reshare="mobilizon_reshare.cli.cli:mobilizon_reshare" + +[tool.pytest.ini_options] +addopts = "--cov-config=.coveragerc --cov=. --cov-report html tests/"