Tests as documentation
Në shqip: Testet si dokumentim
ShpjegimiSQ
Testet e shkruara mirë tregojnë si duhet të sillet kodi: test_nxenesi_me_note_nen_5_mbetet() është dokumentim që s'del kurrë jashtë date, sepse dështon po ndryshon sjellja.
EnglishEN
Well-written tests show how code should behave: test_student_below_5_fails() is documentation that never goes out of date, because it fails if the behaviour changes.
Si ta mendosh
Si udhëzimet e përdorimit që kontrollojnë vetë nëse pajisja punon siç thonë.
Lexoje në anglisht
Like a user manual that checks for itself whether the device works as described.