summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2021-10-01 21:40:19 -0400
committerJeff Forcier <jeff@bitprophet.org>2021-10-01 22:04:36 -0400
commite5d9dcced95948ef61df2b5d500d37216b8f781f (patch)
tree3777ab33172542c45f3a79a3907ad220eb3ff4ba
parentaac13fb192d3f4a5ca01026aa544d29a2c0dcfb1 (diff)
Coverage tweaks
- our customized test runner needed to stop using cli flag now that rcfile is in use, lol. NOW tests are shown. - add coverage files to gitignore
-rw-r--r--.gitignore2
-rw-r--r--tasks.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 89a9eee0..c6a6c494 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,5 @@ _build
.coverage
.cache
.idea
+coverage.xml
+htmlcov
diff --git a/tasks.py b/tasks.py
index bfa43ae8..7da6eff1 100644
--- a/tasks.py
+++ b/tasks.py
@@ -60,7 +60,7 @@ def test(
# Leverage how pytest can be run as 'python -m pytest', and then how
# coverage can be told to run things in that manner instead of
# expecting a literal .py file.
- runner = "coverage run --source=paramiko -m pytest"
+ runner = "coverage run -m pytest"
# Strip SSH_AUTH_SOCK from parent env to avoid pollution by interactive
# users.
# TODO: once pytest coverage plugin works, see if there's a pytest-native