« LeSS - Tests unitaires » : différence entre les versions

De Wiki Agile
Correction date
m Ajout images
Ligne 175 : Ligne 175 :


[[File:https://less.works/img/technical-excellence/xunit_test.png.pagespeed.ic.U9rHA2rtat.webp]]
[[File:https://less.works/img/technical-excellence/xunit_test.png.pagespeed.ic.U9rHA2rtat.webp]]
[[Image:Xunit_test_fr.png|Xunit_test_fr.png]]


== Good Unit Test Patterns ==
== Good Unit Test Patterns ==
Ligne 189 : Ligne 191 :


[[File:https://less.works/img/technical-excellence/500xNxunit_test_success.png.pagespeed.ic.W3mg1FIwIC.png]]
[[File:https://less.works/img/technical-excellence/500xNxunit_test_success.png.pagespeed.ic.W3mg1FIwIC.png]]
[[Image:unit_test_success.png|unit_test_success.png]]


Rule of thumb:
Rule of thumb:
Ligne 200 : Ligne 204 :
And when it fails, it should provide precise information. The goal is to limit the amount of time you spend on debugging when the test fails.<br />
And when it fails, it should provide precise information. The goal is to limit the amount of time you spend on debugging when the test fails.<br />
[[File:https://less.works/img/technical-excellence/342xNxunit_test_fail.png.pagespeed.ic.eM-9actgRz.png]]
[[File:https://less.works/img/technical-excellence/342xNxunit_test_fail.png.pagespeed.ic.eM-9actgRz.png]]
[[Image:342xNxunit_test_fail.png.pagespeed.ic.eM-9actgRz.png|342xNxunit_test_fail.png.pagespeed.ic.eM-9actgRz.png]]


Et lorsqu’un test unitaire échoue, il devrait nous fournir toutes les informations nécessaires. L’objectif est de limiter la durée pendant laquelle vous êtes occupés à débogguer le code concerné.
Et lorsqu’un test unitaire échoue, il devrait nous fournir toutes les informations nécessaires. L’objectif est de limiter la durée pendant laquelle vous êtes occupés à débogguer le code concerné.