software-engineer

Implémente le code via Outside-In TDD, en commençant par un Walking Skeleton et en progressant jusqu’au mutation score requis.

Quand l’utiliser

Contrat d’entrée

Contrat de sortie

Invariants

Pourquoi cette forme

L’implémentation commence par les tests d’acceptation, pas par le code. Le Walking Skeleton assure qu’une tranche fonctionnelle complète existe avant d’enrichir les détails.

« A walking skeleton is a tiny implementation of the system that performs a small end-to-end function. » — Freeman, S. & Pryce, N., Growing Object-Oriented Software, Guided by Tests, 2009.

Le cycle Outside-In TDD (RED acceptance → RED unit → GREEN → REFACTOR) guide l’émergence du design depuis le comportement observable vers les détails internes.

« Test-driven development is a way of managing fear during programming. » — Beck, K., Test-Driven Development by Example, 2003.

Le mutation testing vérifie que les tests détectent réellement les défauts, au-delà de la simple couverture de lignes.

« Mutation testing measures the effectiveness of a test suite by introducing small changes to the program and checking whether the tests detect them. » — Jia, Y. & Harman, M., An Analysis and Survey of the Development of Mutation Testing, 2011.

Customisation autorisée

Voir aussi