Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
TDD für Senior-Devs
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Oliver Klee
May 30, 2023
Programming
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TDD für Senior-Devs
Oliver Klee
May 30, 2023
Transcript
18 slides
Test-driven- Development für Senior-Devs Oliver Klee, 2023-xx @
[email protected]
|
[email protected]
Unit- Tests?
Automatisierte Tests sind schnell
Sicher sein, dass der Code das Richtige tut
Verhindern, dass deine Änderungen etwas anderes kaputt machen
Verhindern, dass andere Leute deinen Code kaputtmachen
Auch bei komplexen Projekten nichts kaputt machen
Baue ein Sicherheitsnetz fürs Refactoring oder für TYPO3-Updates
Verbessere die Struktur des Codes
Finde die Ursache von Bugs
Grün fühlt sich gut an!
Lasst uns ein paar Begriffe klarstellen
Die zwei Programmier-Modi sauber hacky
4 Test-Phasen Setup (aufbauen) setUp() Code in der Testmethode Exercise
(ausführen) Methodenaufruf Verify (prüfen) assert…() Teardown (abbauen) tearDown()
Schreibe zuerst den Test Test schreiben Code schreiben refactoren
Wozu führt TDD? höhere Coverage minimaler Code erst denken,
dann coden Tests testen, was der Code machen soll (statt, was er tatsächlich tut) fokussiertes Coden sauberere Code-Struktur
Test- Namen
Benutze aussagekräftige Test-Namen classCanBeInstantiated setTitleSetsTitle setSizeWithZeroThrowsException hasTitleForEmptyTitleReturnsFalse Benenne das Verhalten.
Nenne die Vorbedingungen. Nenne die Methode. Benutze nicht „works“ oder „correctly“. measureFrubbleWorksCorrectly
More Decks by Oliver Klee
See All by Oliver Klee
Testing von TYPO3-Extensions
oliverklee
0
30
Softwarequalität für öffentliche TYPO3-Extensions
oliverklee
0
85
Psychologische Sicherheit
oliverklee
0
50
Generative KI, Ethik und Nachhaltigkeit
oliverklee
0
290
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
160
Team-Management-Plattform
oliverklee
0
110
Vertrauen in Teams & Führung
oliverklee
0
340
Software-Qualität von TYPO3-Extensions automatisieren
oliverklee
0
72
Vertrauen in Teams & Führung
oliverklee
0
200
Other Decks in Programming
See All in Programming
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
640
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
2
380
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.1k
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
200
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
150
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
Next.js: The final boss of Web Performance
guaca
0
410
protojson における文字化けの扱い
kazuki1023
0
420
Performance Optimization With LLMs
xleitix
0
260
Featured
See All Featured
The Limits of Empathy - UXLibs8
cassininazir
2
780
Skip the Path - Find Your Career Trail
mkilby
1
290
Automating Front-end Workflow
addyosmani
1370
210k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
350
Making Projects Easy
brettharned
120
6.9k
The untapped power of vector embeddings
frankvandijk
2
2k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
400
Faster Mobile Websites
deanohume
310
32k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
750
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
470
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
610
How GitHub (no longer) Works
holman
316
150k