diff --git a/tox.ini b/tox.ini
index c0300b7..c1e2f8b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,17 +1,17 @@
 [tox]
 envlist=flake8,py3
 
 [testenv:py3]
 deps =
   -r requirements-test.txt
-  coverage
+  pytest-cov
   pifpaf
 commands =
-  pifpaf run postgresql -- pytest {posargs}
+  pifpaf run postgresql -- pytest --cov=swh --cov-branch {posargs}
 
 [testenv:flake8]
 skip_install = true
 deps =
   flake8
 commands =
   {envpython} -m flake8