Të përgjithshme

Unit vs integration test

Në shqip: Test njësie dhe test integrimi

ShpjegimiSQ

Testi i njësisë kontrollon një pjesë të vogël kodi veç e veç, zakonisht një funksion. Testi i integrimit kontrollon nëse disa pjesë punojnë mirë bashkë — p.sh. kodi me databazën. Testet end-to-end e provojnë gjithë aplikacionin si përdorues.

EnglishEN

A unit test checks one small piece of code on its own, usually a function. An integration test checks whether several pieces work well together — like the code with the database. End-to-end tests try the whole app like a user would.

Si ta mendosh

Si te vetura: e kontrollon çdo pjesë veç (frenat, dritat), pastaj nëse punojnë bashkë, dhe në fund bën një xhiro të plotë.

Lexoje në anglisht

Like with a car: check each part on its own (brakes, lights), then whether they work together, and finally take it for a full test drive.

Terma të lidhur