.
├── tp1/ TP1 — La Pyramide des tests & Pattern AAA
├── tp2/ TP2 — Isolation et Mocking avec WireMock
├── tp3/ TP3 — Design de Code et TDD (Red-Green-Refactor)
└── tp4/ TP4 — Industrialisation et CI/CD
Chaque TP est autonome. Pour lancer un TP :
cd tp1 # (ou tp2, tp3, tp4)
make install # Installe les dépendances via Docker
make test # Lance tous les tests- Docker Desktop (ou Docker Engine + Compose v2)
- Make
| TP | Thème | Commande rapide | Particularité |
|---|---|---|---|
| tp1 | Pyramide & AAA | make test |
Premiers tests |
| tp2 | WireMock & Isolation | make test |
Container WireMock |
| tp3 | TDD Red-Green-Refactor | make test |
Code à implémenter |
| tp4 | ParaTest & GitHub Actions | make test |
CI à compléter |
- PHP + Symfony
- PHPUnit + ParaTest (TP4)
- DAMA/DoctrineTestBundle (transactions rollback)
- WireMock (simulation HTTP)
- SQLite (base de données de test)
- PCOV (couverture de code)