Scríobh tástálacha maithe — atá iontaofa, inchothromtha, agus luachmhar — i ndiaidh nósanna imeachta bunaithe. Éiríonn tástálacha lag (geal, mall, neamhsoiléir) ina bhiachán, agus freagraíonn tástálacha maithe fad-bhunaithe. Tá sé tábhachtach na nósanna imeachta seo a thuiscint do thástáil éifeachtach.
Tréithe tástálacha maithe (FIRST)
FAST → run quickly (so they're run often)
INDEPENDENT/ISOLATED → don't depend on each other or order; each sets up its own state
REPEATABLE → same result every time, any environment (no flakiness)
SELF-VALIDATING → clear pass/fail (assertions, not manual inspection)
TIMELY → written with (or before) the code
