Urdorf Frauenfeld Untervaz Cadenazzo Pratteln Ostermundigen Rümlang Wallisellen Buchs 1.5 Years 3 Centers 6 Million Parcels 27. August 2024 Swiss Post – 100% Unit Test Coverage – Marc Sallin – C1 Public 3
Failure & TTR ~1.5d Commit Lead Time 18 Dev & Arch 99.9% Unit Test Coverage 27. August 2024 Swiss Post – 100% Unit Test Coverage – Marc Sallin – C1 Public 4
methods, and experience to the design, implementation, testing, and documentation of software.” IEEE Standard Glossary of Software Engineering Terminology 27. August 2024 Swiss Post – 100% Unit Test Coverage – Marc Sallin – C1 Public 7
Premise: Tests do not proof the absence of defects It follows: Even 100% test coverage doesn’t proof the absence of defects Conclusion: it follows that 100% isn’t worth it 27. August 2024 Swiss Post – 100% Unit Test Coverage – Marc Sallin – C1 Public 8
2024 Swiss Post – 100% Unit Test Coverage – Marc Sallin – C1 Public 10 Premise: Not all areas are important to test It follows: We not need to test all areas Conclusion: We only cover 80% To make the conclusion’s true, the following assumptions have to be true: Assumption I: Important areas are objectively definable Assumption II: The ration of important vs. unimportant areas stays the same
time 27. August 2024 Swiss Post – 100% Unit Test Coverage – Marc Sallin – C1 Public 12 https://martinfowler.com/bliki/DesignStaminaHypothesis.html (26.08.2024)
functional correctness! Can we do better? 2. September 2024 Die Schweizerische Post – Titel der Präsentation – Vorname Name – C1 Öffentlich | C2 Intern | C3 Eingeschränkt | C4 Vertraulich (Fusszeile ändern über «Einfügen > Kopf- und Fusszeile») 14