Testing framework เป็นเครื่องมือที่ให้โครงสร้างและยูทิลิตีสำหรับการเขียนและรัน test — การจัดระเบียบ test, assertion, การรัน, การรายงาน และอื่นๆ ทุกภาษามี framework ยอดนิยม (Jest, JUnit, pytest ฯลฯ) มันทำให้การทดสอบเป็นจริงและมีมาตรฐาน
testing framework ให้อะไรบ้าง
✓ 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
