From 8f9a8b620ea69ec07691e215dfe8a0eeca0b5a2d Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Wed, 25 Oct 2023 17:19:53 +0200 Subject: [PATCH] TEST: Added test coverage reports. --- .coveragerc | 2 ++ CHANGELOG.md | 2 ++ tox.ini | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..1dc4f3d8 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[html] +show_contexts = True diff --git a/CHANGELOG.md b/CHANGELOG.md index 61c4d9c4..3662e200 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Documentation ### +* Test coverage reports are now generated in `.tox/cov_html/` by tox. + ## [0.8.0] - 2023-05-30 ## (Florian Spreckelsen) diff --git a/tox.ini b/tox.ini index 0e9664c3..00548dea 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ deps=nose openpyxl >= 3.0.7 xlrd == 1.2 h5py -commands=py.test --cov=caosadvancedtools -vv {posargs} +commands=py.test --cov=caosadvancedtools --cov-report=html:.tox/cov_html -vv {posargs} [flake8] max-line-length=100 -- GitLab