Framework-urile de testare sunt instrumente care oferă structura și utilitățile pentru scrierea și executarea testelor — organizarea testelor, assertions, execuția, raportarea și mai mult. Fiecare limbaj are framework-uri populare (Jest, JUnit, pytest, etc.). Le fac testarea practică și standardizată.
Ce oferă framework-urile de testare
✓ TEST STRUCTURE — define tests and group them (test/it, describe/suite)
✓ ASSERTIONS — check expected outcomes (expect, assert) with helpful matchers
✓ TEST RUNNER — discover, run all tests, and report pass/fail results
✓ SETUP/TEARDOWN — run code before/after tests (beforeEach, afterEach) for shared setup
✓ MOCKING — create test doubles (mocks, stubs, spies) for dependencies
✓ REPORTING — clear output, failure details, coverage integration
