diff --git a/Makefile b/Makefile index cf7cfbed3..560e5a886 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ build: test: rm -f .coverage coverage.xml - hatch run all:pytest + hatch run all:pytest --cov=pyfeyn2 --cov-config=.coveragerc --cov-append --cov-report=term --cov-report=xml commit: -git add . diff --git a/pyproject.toml b/pyproject.toml index 05dd5e08e..beb5b9bee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,7 +97,7 @@ mkfeyndiag = "pyfeyn2.mkfeyndiag:main" [tool.pytest.ini_options] minversion = "6.0" testpaths = ["tests"] -addopts = [ "-Werror","-v","--cov=pyfeyn2","--cov-config=.coveragerc","--cov-append","--cov-report=term","--cov-report=xml","--doctest-modules","--ignore=docs/source/conf.py" ] +addopts = [ "-Werror","-v","--doctest-modules","--ignore=docs/source/conf.py" ] filterwarnings = [ 'error', 'ignore: pkg_resources is deprecated as an API:DeprecationWarning', diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 6b06f5320..000000000 --- a/pytest.ini +++ /dev/null @@ -1,3 +0,0 @@ -[pytest] -minversion = 6.0 -addopts = -v --cov=pyfeyn2 --cov-config=.coveragerc --cov-append --cov-report=term --cov-report=xml --doctest-modules --ignore=docs/source/conf.py --ignore=debug/