diff --git a/tests.nix b/tests.nix
index b4a9a01b411c09ccc5a768595918e0ec077a778f..f617608d48de24a620c0d50198f1dcd4eac0b7b2 100644
--- a/tests.nix
+++ b/tests.nix
@@ -51,7 +51,7 @@ in
       popd
 
       ZKAPAUTHORIZER_HYPOTHESIS_PROFILE=${hypothesisProfile'} ${python}/bin/python -m ${if collectCoverage
-    then "coverage run --debug=config --module"
+    then "coverage run --debug=config --rcfile=${zkapauthorizer.src}/.coveragerc --module"
     else ""
     } twisted.trial ${extraTrialArgs} ${testSuite'}