From 9725f8fb0481cc4bb423675fdb39e8eacd59b7a4 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Tue, 20 Nov 2018 08:59:10 +0100
Subject: [PATCH] coverage: Allow small drops in coverage
Most PRs change code where no tests have been written so far and where
adding tests is difficult. Codecov fails all those PRs.
These values should be adjusted once we have better integrated testing
into our workflow and have written better testing infrastructure for
modules and very tightly coupled components
---
.codecov.yml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.codecov.yml b/.codecov.yml
index 2ad8d7f1..cb44c86e 100644
--- a/.codecov.yml
+++ b/.codecov.yml
@@ -1,3 +1,15 @@
+coverage:
+ status:
+ project:
+ default:
+ # Coverage can drop by 0.1% without failing the status
+ threshold: 0.1
+ patch:
+ default:
+ # Patches don't need test coverage
+ # TODO remove once we have proper testing infrastructure and documentation
+ target: 0
+
ignore:
- "tests/*"
- "lib/*"