Testimi & QA

Test behaviour, not implementation

Në shqip: Testo sjelljen, jo implementimin

ShpjegimiSQ

Testet e mira kontrollojnë çfarë sheh përdoruesi ose çfarë kthen funksioni — jo si e bën nga brenda. Kështu mund ta rifaktorosh kodin pa prishur testet. „Sa më shumë t'i ngjajnë testet përdorimit real, aq më shumë besim japin.“

EnglishEN

Good tests check what the user sees or what a function returns — not how it works inside. That way you can refactor code without breaking tests. “The more your tests resemble real use, the more confidence they give.”

Si ta mendosh

Si të vlerësosh një gjellë nga shija, jo nga lëvizjet e kuzhinierit.

Lexoje në anglisht

Like judging a dish by its taste, not the chef's movements.

Terma të lidhur