SlideShare a Scribd company logo
1 of 15
Download to read offline
BugDay 2012
The variety of Unit Testing #1
Topic
● Sharing and discuss about Your Unit
  Testing
● This session is You not me
● Please speak, speak and speak ....
Test Pyramid




      Image From http://martinfowler.com/bliki/TestPyramid.html
What is your Unit Testing ?
●   ??
●   ??
●   ??
●   ??
Why you use Unit Testing ?
●   ??
●   ??
●   ??
●   ??
Question for your Unit Testing
Question 1
● Can I run and get results from a unit test I
  wrote two weeks or months or years ago?
Question 2
● Can any member of my team run and get the
  results from unit tests I wrote two months
  ago?
Question 3
● Can I run all the unit tests I've written in no
  more than a few minutes?
Question 4
● Can I run all the unit tests I've written at the
  push of a button?
Question 5
● Can I write a basic unit test in no more than
  a few minutes ?
Summary
What is Unit Testing ?
●   Automated
●   Piece of code such as method or function
●   Invoke another piece of code
●   Check correctness about logical behavior
What is good Unit Testing ?
●   Automated and Repeatable
●   Easy to implement
●   Anyone should be able to run it
●   Run at the push of button
●   Run quickly
ว ันนีคุณทํา Unit Testing แล้วหรือย ัง
                 ???

More Related Content

Viewers also liked

To C
To CTo C
To C
rxx
 
Электронные документы: Изменения федеральной и региональной законодательно-но...
Электронные документы: Изменения федеральной и региональной законодательно-но...Электронные документы: Изменения федеральной и региональной законодательно-но...
Электронные документы: Изменения федеральной и региональной законодательно-но...
Natasha Khramtsovsky
 
Pptproject flipbook nmm
Pptproject flipbook nmmPptproject flipbook nmm
Pptproject flipbook nmm
jaspang
 
Location Application Protocol Trap Jack Brown
Location Application Protocol Trap Jack BrownLocation Application Protocol Trap Jack Brown
Location Application Protocol Trap Jack Brown
Jack Brown
 

Viewers also liked (20)

Biotechnology in the Philippines - NAST
Biotechnology in the Philippines - NASTBiotechnology in the Philippines - NAST
Biotechnology in the Philippines - NAST
 
NSIC
NSICNSIC
NSIC
 
To C
To CTo C
To C
 
Fox Terrier - Alexei
Fox Terrier - AlexeiFox Terrier - Alexei
Fox Terrier - Alexei
 
Class 6 Technical Analysis of Stocks and Markets
Class 6 Technical Analysis of Stocks and MarketsClass 6 Technical Analysis of Stocks and Markets
Class 6 Technical Analysis of Stocks and Markets
 
Cus D'Amato
Cus D'AmatoCus D'Amato
Cus D'Amato
 
Электронные документы: Изменения федеральной и региональной законодательно-но...
Электронные документы: Изменения федеральной и региональной законодательно-но...Электронные документы: Изменения федеральной и региональной законодательно-но...
Электронные документы: Изменения федеральной и региональной законодательно-но...
 
Italy Trip 2
Italy Trip 2Italy Trip 2
Italy Trip 2
 
Polar Bears by Tanya
Polar Bears by TanyaPolar Bears by Tanya
Polar Bears by Tanya
 
Simone[1]
Simone[1]Simone[1]
Simone[1]
 
Best persons - Merlijn van Hulst
Best persons - Merlijn van HulstBest persons - Merlijn van Hulst
Best persons - Merlijn van Hulst
 
Pptproject flipbook nmm
Pptproject flipbook nmmPptproject flipbook nmm
Pptproject flipbook nmm
 
Camera
CameraCamera
Camera
 
De macht van burgers - Naar een nieuw economisch en politiek model (Anne Snick)
De macht van burgers - Naar een nieuw economisch en politiek model (Anne Snick)De macht van burgers - Naar een nieuw economisch en politiek model (Anne Snick)
De macht van burgers - Naar een nieuw economisch en politiek model (Anne Snick)
 
Sociale media voor non-profitorganisaties
Sociale media voor non-profitorganisatiesSociale media voor non-profitorganisaties
Sociale media voor non-profitorganisaties
 
Kennisdelen in het Steunpunt Expertisenetwerken
Kennisdelen in het Steunpunt ExpertisenetwerkenKennisdelen in het Steunpunt Expertisenetwerken
Kennisdelen in het Steunpunt Expertisenetwerken
 
Innovatie in duurzaamheid
Innovatie in duurzaamheidInnovatie in duurzaamheid
Innovatie in duurzaamheid
 
Erasmus+ - volwasseneneducatie
Erasmus+ - volwasseneneducatieErasmus+ - volwasseneneducatie
Erasmus+ - volwasseneneducatie
 
Heemkunde Vlaanderen
Heemkunde VlaanderenHeemkunde Vlaanderen
Heemkunde Vlaanderen
 
Location Application Protocol Trap Jack Brown
Location Application Protocol Trap Jack BrownLocation Application Protocol Trap Jack Brown
Location Application Protocol Trap Jack Brown
 

Similar to BugDay 2012 : The variety of Unit Testing #1

Einführung Test-driven Development
Einführung Test-driven DevelopmentEinführung Test-driven Development
Einführung Test-driven Development
Timo Stollenwerk
 

Similar to BugDay 2012 : The variety of Unit Testing #1 (20)

Design pattern advanced ii with testing
Design pattern advanced ii with  testingDesign pattern advanced ii with  testing
Design pattern advanced ii with testing
 
Writing Tests Effectively
Writing Tests EffectivelyWriting Tests Effectively
Writing Tests Effectively
 
PChomePay unit test basic
PChomePay unit test basicPChomePay unit test basic
PChomePay unit test basic
 
Usability testing - have fun and improve your work
Usability testing - have fun and improve your workUsability testing - have fun and improve your work
Usability testing - have fun and improve your work
 
Claudiu Draghia ITEM 2018
Claudiu Draghia ITEM 2018Claudiu Draghia ITEM 2018
Claudiu Draghia ITEM 2018
 
Automating The New York Times Crossword by Phil Wells
Automating The New York Times Crossword by Phil WellsAutomating The New York Times Crossword by Phil Wells
Automating The New York Times Crossword by Phil Wells
 
Basics of writing clean code
Basics of writing clean codeBasics of writing clean code
Basics of writing clean code
 
Testing: Heaven or Hell
Testing: Heaven or HellTesting: Heaven or Hell
Testing: Heaven or Hell
 
Php day2010
Php day2010Php day2010
Php day2010
 
The art of being an agile programmer
The art of being an agile programmerThe art of being an agile programmer
The art of being an agile programmer
 
User testing
User testingUser testing
User testing
 
User Testing
User TestingUser Testing
User Testing
 
Introduction to Continuous Delivery
Introduction to Continuous DeliveryIntroduction to Continuous Delivery
Introduction to Continuous Delivery
 
Testing javascript
Testing javascriptTesting javascript
Testing javascript
 
Effective Unit Testing
Effective Unit TestingEffective Unit Testing
Effective Unit Testing
 
Unit tests 101
Unit tests 101Unit tests 101
Unit tests 101
 
Junit Interview Questions-ppt
Junit Interview Questions-pptJunit Interview Questions-ppt
Junit Interview Questions-ppt
 
Project Onion unit test environment
Project Onion unit test environmentProject Onion unit test environment
Project Onion unit test environment
 
Einführung Test-driven Development
Einführung Test-driven DevelopmentEinführung Test-driven Development
Einführung Test-driven Development
 
From Gatekeeper to Partner by Kelsey Shannahan
From Gatekeeper to Partner by Kelsey ShannahanFrom Gatekeeper to Partner by Kelsey Shannahan
From Gatekeeper to Partner by Kelsey Shannahan
 

More from Somkiat Puisungnoen

More from Somkiat Puisungnoen (20)

Next of Java 2022
Next of Java 2022Next of Java 2022
Next of Java 2022
 
Sck spring-reactive
Sck spring-reactiveSck spring-reactive
Sck spring-reactive
 
Part 2 :: Spring Boot testing
Part 2 :: Spring Boot testingPart 2 :: Spring Boot testing
Part 2 :: Spring Boot testing
 
vTalk#1 Microservices with Spring Boot
vTalk#1 Microservices with Spring BootvTalk#1 Microservices with Spring Boot
vTalk#1 Microservices with Spring Boot
 
Lesson learned from React native and Flutter
Lesson learned from React native and FlutterLesson learned from React native and Flutter
Lesson learned from React native and Flutter
 
devops
devops devops
devops
 
Angular :: basic tuning performance
Angular :: basic tuning performanceAngular :: basic tuning performance
Angular :: basic tuning performance
 
Shared code between projects
Shared code between projectsShared code between projects
Shared code between projects
 
Distributed Tracing
Distributed Tracing Distributed Tracing
Distributed Tracing
 
Manage data of service
Manage data of serviceManage data of service
Manage data of service
 
RobotFramework Meetup at Thailand #2
RobotFramework Meetup at Thailand #2RobotFramework Meetup at Thailand #2
RobotFramework Meetup at Thailand #2
 
Visual testing
Visual testingVisual testing
Visual testing
 
Cloud Native App
Cloud Native AppCloud Native App
Cloud Native App
 
Wordpress for Newbie
Wordpress for NewbieWordpress for Newbie
Wordpress for Newbie
 
Sck Agile in Real World
Sck Agile in Real WorldSck Agile in Real World
Sck Agile in Real World
 
Clean you code
Clean you codeClean you code
Clean you code
 
SCK Firestore at CNX
SCK Firestore at CNXSCK Firestore at CNX
SCK Firestore at CNX
 
Unhappiness Developer
Unhappiness DeveloperUnhappiness Developer
Unhappiness Developer
 
The Beauty of BAD code
The Beauty of  BAD codeThe Beauty of  BAD code
The Beauty of BAD code
 
React in the right way
React in the right wayReact in the right way
React in the right way
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

BugDay 2012 : The variety of Unit Testing #1