diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000000000000000000000000000000000000..a942b07393f9bdbb788d79748c70e617b5614cf8 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,6 @@ +[run] +source=./ltfatpy +omit = ./ltfatpy/tests/* + +[html] +directory=./build/htmlcov diff --git a/setup.cfg b/setup.cfg index f7fb1ae830b49eee63d44751070caf53dca79d84..acc5ee12661fc2d721742d90b20a5064b6f59060 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,25 +1,19 @@ [nosetests] -#verbosity=1 -where=./ltfatpy -with-xunit=1 -xunit-file=./build/nosetests.xml -with-coverage=1 -cover-package=ltfatpy -cover-erase=1 -cover-html=1 -cover-html-dir=../build/htmlcov +where = ./ltfatpy +with-xunit = 1 +xunit-file = ./build/nosetests.xml +with-coverage = 1 +cover-package = ltfatpy +cover-erase = 1 +cover-html = 1 +cover-html-dir = ../build/htmlcov -[pytest] +[tool:pytest] # Specifies a minimal pytest version required for running tests. minversion = 2.6 # Specifies the options -addopts = --resultlog=pytests_results.txt -k "not _old" --cov-report term-missing --cov=ltfatpy +addopts = --cov-report=html + --cov-report=term-missing + --cov=ltfatpy # Set the directory basename patterns to avoid when recursing for test discovery. norecursedirs = .git bin build cmake-modules ltfat_C_kernel sandboxes .settings - -[coverage run] -source=./ltfatpy -omit = ./ltfatpy/tests/* -[coverage html] -directory=../build/htmlcov -