SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
Unleashing the power and
unfolding the beauty of Unit and
Integration Testing with Test
Containers.
~ Franck Nsabimana
Franck Nsabimana
Software Developer
REPLACE WITH
YOUR PHOTO
~ Understanding what
Testing is all about!
~ Why do we actually need this kind of
testing and why do many people hate
unit testing?
● Is there any Test
Design Goals ?
The goals we should have in mind
1. Catch the bug: For a fix
2. Expressive code: Test code & Source code
3. Execution Time: Optimization
● What about the
Do’s and Don’ts ?
Here is what you need to know:
1. Behavior vs Implementation
2. Database Access
3. Communication Protocol
4. Touching the filesystem
* Tests running in milliseconds
Test Containers to the
rescue and what they
bring onto the table,
More than what we think it is
The Typical evil programmer?
1. Ignoring failing tests
2. Delete failing tests
3. Comment the failing tests
4. What about deleting the assertions or
inverting the assertions results?
We enjoy catching evil
programmers:
No Room For Democracy!
SonarCloud as our FBI agent with only shots:
1. Code Coverage
2. Test reports
3. Code maintainability
Time’s up for Tips and Tricks for better unit and
integration tests
1. Code Smart: Follow principles
2. Reproduce the bug
3. Break the production code
4. Silent Tests: Breaking the laws
5. It may not be a bug
HAPPY CODING !

Mais conteúdo relacionado

Semelhante a Unleashing the power of Unit Testing - Franck Ninsabira.pdf

Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
bhochhi
 
Fundamentals_of_testing.pdf
Fundamentals_of_testing.pdfFundamentals_of_testing.pdf
Fundamentals_of_testing.pdf
AndreeaDavid22
 
3104328 software-testing-interview-questions
3104328 software-testing-interview-questions3104328 software-testing-interview-questions
3104328 software-testing-interview-questions
Raghavendra Kudal
 

Semelhante a Unleashing the power of Unit Testing - Franck Ninsabira.pdf (20)

What is Unit Testing
What is Unit TestingWhat is Unit Testing
What is Unit Testing
 
Best pratice
Best praticeBest pratice
Best pratice
 
Pitfalls of Test Automation
Pitfalls of Test AutomationPitfalls of Test Automation
Pitfalls of Test Automation
 
STM-UNIT-1.pptx
STM-UNIT-1.pptxSTM-UNIT-1.pptx
STM-UNIT-1.pptx
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
 
Testing & should i do it
Testing & should i do itTesting & should i do it
Testing & should i do it
 
An Introduction to Unit Testing
An Introduction to Unit TestingAn Introduction to Unit Testing
An Introduction to Unit Testing
 
An Introduction To Software Development - Test Driven Development, Part 1
An Introduction To Software Development - Test Driven Development, Part 1An Introduction To Software Development - Test Driven Development, Part 1
An Introduction To Software Development - Test Driven Development, Part 1
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
 
Fundamentals_of_testing.pdf
Fundamentals_of_testing.pdfFundamentals_of_testing.pdf
Fundamentals_of_testing.pdf
 
TxJS 2011
TxJS 2011TxJS 2011
TxJS 2011
 
Manual testing interview question by INFOTECH
Manual testing interview question by INFOTECHManual testing interview question by INFOTECH
Manual testing interview question by INFOTECH
 
Tdd
TddTdd
Tdd
 
Info manual testing questions
Info manual testing questionsInfo manual testing questions
Info manual testing questions
 
3104328 software-testing-interview-questions
3104328 software-testing-interview-questions3104328 software-testing-interview-questions
3104328 software-testing-interview-questions
 
Five steps towards your testing dream
Five steps towards your testing dreamFive steps towards your testing dream
Five steps towards your testing dream
 
iOS Test-Driven Development
iOS Test-Driven DevelopmentiOS Test-Driven Development
iOS Test-Driven Development
 
Debugging
DebuggingDebugging
Debugging
 
Software Bugs A Software Architect Point Of View
Software Bugs    A Software Architect Point Of ViewSoftware Bugs    A Software Architect Point Of View
Software Bugs A Software Architect Point Of View
 
Debugging
DebuggingDebugging
Debugging
 

Mais de GDG Bujumbura

Senior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdf
Senior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdfSenior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdf
Senior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdf
GDG Bujumbura
 

Mais de GDG Bujumbura (15)

Web au logiciel desktop avec Tauri - Don Nermed.pdf
Web au logiciel desktop avec Tauri - Don Nermed.pdfWeb au logiciel desktop avec Tauri - Don Nermed.pdf
Web au logiciel desktop avec Tauri - Don Nermed.pdf
 
Transaction SQL - Jean Thierry.pptx
Transaction SQL - Jean Thierry.pptxTransaction SQL - Jean Thierry.pptx
Transaction SQL - Jean Thierry.pptx
 
Science-Fiction - The forgotten art of designing better technologies - Josue....
Science-Fiction - The forgotten art of designing better technologies - Josue....Science-Fiction - The forgotten art of designing better technologies - Josue....
Science-Fiction - The forgotten art of designing better technologies - Josue....
 
Remote Sensing for Land Cover Mapping in Google Earth Engine - HAMENYIMANA Is...
Remote Sensing for Land Cover Mapping in Google Earth Engine - HAMENYIMANA Is...Remote Sensing for Land Cover Mapping in Google Earth Engine - HAMENYIMANA Is...
Remote Sensing for Land Cover Mapping in Google Earth Engine - HAMENYIMANA Is...
 
LLMs for the “GPU-Poor” - Franck Nijimbere.pdf
LLMs for the “GPU-Poor” - Franck Nijimbere.pdfLLMs for the “GPU-Poor” - Franck Nijimbere.pdf
LLMs for the “GPU-Poor” - Franck Nijimbere.pdf
 
Les outils et compétences nécessaires pour le développement en remote - Ce...
Les outils et compétences nécessaires pour le développement en remote - Ce...Les outils et compétences nécessaires pour le développement en remote - Ce...
Les outils et compétences nécessaires pour le développement en remote - Ce...
 
La diversité et la véracité de l'IA dans la vie de tous les jours avec un ...
La diversité et la véracité de l'IA dans la vie de tous les jours avec un ...La diversité et la véracité de l'IA dans la vie de tous les jours avec un ...
La diversité et la véracité de l'IA dans la vie de tous les jours avec un ...
 
Google Authentication in Python - Destin.pdf
Google Authentication in Python - Destin.pdfGoogle Authentication in Python - Destin.pdf
Google Authentication in Python - Destin.pdf
 
Comment creer de Applicartions Desktop avec Javascript - Bejamin Kinyamba.pdf
Comment creer de Applicartions Desktop avec Javascript - Bejamin Kinyamba.pdfComment creer de Applicartions Desktop avec Javascript - Bejamin Kinyamba.pdf
Comment creer de Applicartions Desktop avec Javascript - Bejamin Kinyamba.pdf
 
Web au logiciel desktop avec Tauri - Don Nermed.pdf
Web au logiciel desktop avec Tauri - Don Nermed.pdfWeb au logiciel desktop avec Tauri - Don Nermed.pdf
Web au logiciel desktop avec Tauri - Don Nermed.pdf
 
Senior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdf
Senior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdfSenior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdf
Senior Sebarundi @flutterfoward 2023 - Flutter Favorites.pdf
 
Road map to DevOps engineering - Elie Sirius
Road map to DevOps engineering -  Elie SiriusRoad map to DevOps engineering -  Elie Sirius
Road map to DevOps engineering - Elie Sirius
 
How to be a self-taught programmer best practices - Edgar Eldy
How to be a self-taught programmer  best practices - Edgar EldyHow to be a self-taught programmer  best practices - Edgar Eldy
How to be a self-taught programmer best practices - Edgar Eldy
 
Women in Tech : The Community - Seilla Nkurunziza
Women in Tech : The Community - Seilla NkurunzizaWomen in Tech : The Community - Seilla Nkurunziza
Women in Tech : The Community - Seilla Nkurunziza
 
Android et Minimalisme - Thomas Ezan
Android et Minimalisme - Thomas EzanAndroid et Minimalisme - Thomas Ezan
Android et Minimalisme - Thomas Ezan
 

Último

audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
lolsDocherty
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
ChloeMeadows1
 

Último (17)

AI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model GeneratorAI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model Generator
 
Cyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital PresenceCyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital Presence
 
Bug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's GuideBug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's Guide
 
Statistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdfStatistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdf
 
Thank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirtsThank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirts
 
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
 
Free scottie t shirts Free scottie t shirts
Free scottie t shirts Free scottie t shirtsFree scottie t shirts Free scottie t shirts
Free scottie t shirts Free scottie t shirts
 
Premier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdfPremier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdf
 
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
 
The Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdfThe Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdf
 
GOOGLE Io 2024 At takes center stage.pdf
GOOGLE Io 2024 At takes center stage.pdfGOOGLE Io 2024 At takes center stage.pdf
GOOGLE Io 2024 At takes center stage.pdf
 
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
 
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWebiThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
 
Development Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of appsDevelopment Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of apps
 
Reggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirts
 
I’ll See Y’All Motherfuckers In Game 7 Shirt
I’ll See Y’All Motherfuckers In Game 7 ShirtI’ll See Y’All Motherfuckers In Game 7 Shirt
I’ll See Y’All Motherfuckers In Game 7 Shirt
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
 

Unleashing the power of Unit Testing - Franck Ninsabira.pdf

  • 1. Unleashing the power and unfolding the beauty of Unit and Integration Testing with Test Containers. ~ Franck Nsabimana Franck Nsabimana Software Developer REPLACE WITH YOUR PHOTO
  • 3. ~ Why do we actually need this kind of testing and why do many people hate unit testing?
  • 4. ● Is there any Test Design Goals ?
  • 5. The goals we should have in mind 1. Catch the bug: For a fix 2. Expressive code: Test code & Source code 3. Execution Time: Optimization
  • 6. ● What about the Do’s and Don’ts ?
  • 7. Here is what you need to know: 1. Behavior vs Implementation 2. Database Access 3. Communication Protocol 4. Touching the filesystem * Tests running in milliseconds
  • 8. Test Containers to the rescue and what they bring onto the table, More than what we think it is
  • 9. The Typical evil programmer? 1. Ignoring failing tests 2. Delete failing tests 3. Comment the failing tests 4. What about deleting the assertions or inverting the assertions results?
  • 10. We enjoy catching evil programmers: No Room For Democracy!
  • 11. SonarCloud as our FBI agent with only shots: 1. Code Coverage 2. Test reports 3. Code maintainability
  • 12. Time’s up for Tips and Tricks for better unit and integration tests 1. Code Smart: Follow principles 2. Reproduce the bug 3. Break the production code 4. Silent Tests: Breaking the laws 5. It may not be a bug