From 291526f4ad056fe47d0312fc3de3a47130cc4020 2018-02-26 11:06:22 From: Branko Majic Date: 2018-02-26 11:06:22 Subject: [PATCH] GC-2: Added coverage configuration and updated manifest file: - Include only the actual module files in the coverage reporting. - Addd comments to gitignore file. - Updated gitignore file to exclude test artefacts. - Updated manifest file to include documentation files, as well as test configuration file. - Added pytest configuration file that ensures coverage plugin is enabled and that report is stored in html format in the coverage directory. --- diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000000000000000000000000000000000000..c1b7a4327f8d655d75b7cea1e93cf4d1b19892b5 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +include = gimmecert/* \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0aaf24e81b00da5915db824f94e6e2f7839e84d9..b3abfb005b26a65b25bdd17c14823da11e46735e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,8 @@ dist/ .eggs/ .pytest_cache/ __pycache__/ -*.egg-info/ \ No newline at end of file +*.egg-info/ + +# Ignore test artefacts. +.coverage +coverage/ \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in index 770296dee8c4baa78d04f771fe12391d56e37196..3f93ef52010966856146fe8e5fddc37e1cc79d83 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,10 @@ +# Licensing informaiton. include LICENSE-* -recursive-include docs *.rst \ No newline at end of file + +# Documentation source. +recursive-include docs *.rst + +# Test configuration files. +include pytest.ini +include tox.ini +include .coveragerc diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000000000000000000000000000000000000..8cb3d39a58162e80f5bdfb0037f40f9ff6eba048 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = --cov --cov-report=html:coverage \ No newline at end of file