SlideShare une entreprise Scribd logo
1  sur  54
Télécharger pour lire hors ligne
YAZILIM TESTLERİ
SÜLEYMAN FAZIL YEŞİL @ZİRAAT TEKNOLOJİ
Y A Z I L I M I
D O ĞR U L A M A N I N
K I S A Y O L U :
GÜNDEM
Kültür, Alışkanlıklar, Pratikler
Nasa Hikayesi
Netflix Kaos Maymunu
Kaliteyi Tescillemek
Manuel mi Otomasyon mu?
XUnit, XP, TDD
Testlerin Basit Bir Sınıflandırması
TDD'den BDD'ye
DDD - Karmaşıklıkla Mücadele
Test Piramidi
Testlerin Anatomisi
İzolasyon ve Test Dublörü
Mikroservislerin Testi
ALIŞKANLIKLAR
PRATİKLER
PRENSİPLER
DEĞERLER
KÜLTÜR
1998'de Marsa gönderilen
uydu, yolculuğunun 9.
ayında Eylül 1999'da bir
anda ortadan kaybolur.
NASA
MARS İKLİM
UYDUSU
9 aylık yolculuk boyunca uydudan gelen veriler metrik
sistem yerine İngiliz ölçü birimiyle raporlanınca
güzergahtan sapma yanlış hesaplanmış.
BİRİMLER KARIŞINCA
B i r m u s i b e t
b i n n a s i h a t t e n
i y i d i r .
B i r l o k a s y o n d a k i b i r
s e r v i s i n ç ö k m e s i n e
k a r şı b a ğı şı k o l m a k
i ç i n , g e r ç e k o r t a m d a
r a s t g e l e b i r s e r v i s i
k a p a t m a k .
NETFLIX KAOS
MAYMUNU
KALİTEYİ TESCİLLEMEK
KURUMSAL
İMAJ
VERİMLİLİK
FİNANSAL
KAYIPLAR
M A N U E L M İ ? O T O M A T İ K M İ ?
H E R Ş E Y
H I Z L A N D I Ğ I N D A . . .
NE FAYDASI
VAR?
HIZLI GERİ
BİLDİRİM
REGRESYON
TESTİ
GÜVEN
ZIRHI
Biraz Tarihçe...
KENT BECK
1994
1997
1996
1999
2002
SUnit kütüphanesi,
Smalltalk için.
Eric Gamma ile birlikte
JUnit kütüphanesini
yazarlar.
Chrysler C3 projesi ve
XP'nin doğuşu, Ward
Cunnigham, Ron Jeffries,
Martin Fowler vd.
Extreme Programming
Explained: Embrace
Change
Test Driven Development:
By Example
TDD ÇALIŞMA PRATİĞİ
TDD'den
BDD'ye doğru...
BASİT BİR SINIFANDIRMA
ATDD: Acceptance Test
Driven Development
WARD
CUNNINGHAM
Design Patterns
XP (Extreme Programming)
Agile Manifesto (2001)
Wiki
Fit
FIT: Framework For
Integrated Tests (2002)
ROBERT C.
MARTIN
Fitness (2003)
Clean Code
Agile Manifesto (2001)
SOLID prensipleri
DAN NORTH
JBehave (2004)
BDD, GivenWhenThen söz dizimi,
Chris Matts ile birlikte (2006)
AgileDox
(Chris Stevenson, 2003)
Diyelim ki (Tanımlanan): şartlar, 
Eğer ki (Ne zaman): bir olay olunca, 
O zaman (Sonuç): sonuçları doğrula.
DİYELİM Kİ - EĞER Kİ - O ZAMAN
(GIVEN-WHEN-THEN)
+Başlık: Müşteri para çeker+
Bir müşteri olarak,
ATM’den para çekmek istiyorum,
böylece bankada sıra beklememe gerek kalmaz.
+Senaryo 1: Hesapta bakiye var+
Diyelim ki Bakiyesi olan bir hesap
Ve kart geçerli
Ve ATM’de nakit para var
Eğer ki müşteri para çekmek isterse
O zaman paranın hesaptan düştüğüne emin ol
Ve paranın verildiğine emin ol
Ve kartın iade edildiğine emin ol
BDD ÖRNEĞİ
CUCUMBER
BDD STİLİ BİRİM TEST
BDD STİLİ BİRİM TEST - API
Karmaşıklıkla
Mücadele...
ERIC EVANS
Domain-Driven Design: Tackling
Complexity in the Heart of
Software (2003)
Kurumsal şirketlerin temel derdi işin
karmaşıklığıdır, internet şirketlerinin temel
derdiyse ölçekleme problemidir.
MARTIN KLEPPMANN
KARMAŞIKLIK?
Veri Modeli1
İstisnalar2
Bağımlılıklar3
MIKE COHN
Test Piramidi
Scrum ve çevik metodolojiyle ilgili
çeşitli yayınlar
TEST PİRAMİDİ
ENTEGRASYON
BİRİM
TERSİNE TEST PİRAMİDİ
BİR TESTİN ANATOMİSİ
Hazırlık1
Testin Çalıştırılması2
Kontroller ve Doğrulama3
Temizlik4
TEMEL YAPI TAŞLARI
Test Verisi Hazırlama1
Testlerin Yazımı2
Testlerin Koşulması (Test Runner)3
İzolasyon ve Test Dublörü (Test Doubles)4
Doğrulamalar (Matchers)5
Test Koşum ve Kapsama Raporu (Coverage)6
İZOLASYON VE
BAĞIMLILIKLA MÜCADELE
BAĞIMLILIKLARIN
PROBLEMİ NE?
Karmaşık bağımlılıklar1
Kontrol edilememe2
Senaryoları yaratma zorluğu3
Yavaşlık4
Asenkron çalışma5
BAĞIMLILIKLARIN ENJEKSİYONU
(DEPENDENCY INJECTION)
BAĞIMLILIKLARIN ENJEKSİYONU
(DEPENDENCY INJECTION)
TEST DUBLÖRÜ
(TEST DOUBLES)
TEST DUBLÖR TİPLERİ
STUB SPY
FAKE DUMMY
MOCK
MOCK ÖRNEĞİ
DUBLÖR KULLANIMI:
İYİ, KÖTÜ VE ÇİRKİN
Parçaların Entegrasyon Testi1
Kırılganlık2
Testlerinizi temiz tutun. Onlara
sisteminizin birinci sınıf vatandaşı
gibi davranın.
ROBERT C. MARTIN
MONOLİTİK UYGULAMALAR ve
MİKROSERVİSLER
MONOLİTİK UYGULAMALAR ve
MİKROSERVİSLER
SERVIS SANALLAŞTIRMA
(MOUNTEBANK STUB SERVER)
KONTRAT TESTİ
Yazılımcı neden test
yazmaktan kaçınır?
Ben harika bir programcı değilim. Ben
sadece harika alışkanlıklara sahip iyi bir
programcıyım.
KENT BECK
TEŞEKKÜRLER.
@MEDIUM
@LINKEDIN
@GITHUB
@TWITTER

Contenu connexe

En vedette

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

En vedette (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Kodu Doğrulamanın Kısa Yolu: Yazılım Testleri