Parametreli (veri odaklı) testler, aynı test mantığını birden fazla girdi ve beklenen çıktı kümesiyle çalıştıran testlerdir — her durum için testi tekrarlamaktan kaçınır. Birçok senaryoyu (sınır durumları dahil) kısaca test etmeyi kolaylaştırır.
Sorun: tekrarlanan testler
Without parameterization, testing many input/output cases means COPYING the test:
test('add 2+3', () => expect(add(2,3)).toBe(5));
test('add 0+0', () => expect(add(0,0)).toBe(0));
test('add -1+1', () => expect(add(-1,1)).toBe(0));
→ lots of near-identical, repetitive tests (tedious, hard to maintain)
