diff --git a/.coveragerc b/.coveragerc
index bc952e665..8b31df775 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,2 +1,7 @@
+[coverage:run]
+relative_files = True
+source = src/
+branch = True
+
 [report]
 omit=src/tests/*,src/vendor/*,/usr/lib/moulinette/yunohost/*,/usr/lib/python3/dist-packages/yunohost/tests/*,/usr/lib/python3/dist-packages/yunohost/vendor/*