SlideShare a Scribd company logo
1 of 24
“Myths which are believed in tend
to become true.” ~ George Orwell
Ash Winter
Short stuff here:
@northern_tester
Long stuff here:
A Testers* Guide to the Myths,
Legends and Tales of Unit Testing
* Disclaimer: this definitely maybe applies to all disciplines in software
development, not only testers but I’m a tester so its from my point of view.
This is Gus
• Speakeasy
• Great
mentor
• Taught me
speaking
wasn’t only
about me
Tweet
Blog
Talk
• Lone
testers
• Testing in
other
layers
• Cross
discipline
illusions
Y Tho?
• Pyramids
• Myths
• Legends
• Tales
• Changing
perceptions
–As a tester
–How devs can
help
Coming up…
• Useful frame of reference?
• Dogma justifying blood
sacrifice?
• Triangle anyway
That Pyramid…
• That unit tests fill in the bottom of the
pyramid
• That unit tests remain in the bottom layer of
the pyramid
• That unit tests are inherently more valuable
than other layers of tests
• That unit test coverage is irrelevant to
manual testing
• Large number of unit tests can replace
integration tests.
• You don't need additional tests because
everything is unit tested
• If you have a suite of unit tests you don't
need to do much other testing
The source…?
• Based on
reality
• Explains
something
we don’t
or can’t
understand
• Moral
• Y2K
Myths
Myths
• What’s a unit?
• Existence ==
good
• Tests exist to
find bugs
• Unit tests
communicate
intent
• Document the
code
Myths
• I’ve written
my unit test
plan.
• Erm…
• But they
were testing
• Right or
wrong to
challenge?
• Based on a
true event
• Hero(es) in
fantastical
location
• Origin
story
• Snowbird
Ski Resort
Legends
Legends
• TDD is testing, design, both
and/or neither
• Power of Clean Code™
Legends
• Startup
• Great code
• Unit tests
FTW
• Idea was
bad
• Didn’t
test that
• Death
• Stories
passed down
• Might be one
person
• Might be a
group
• Fairy or folk
tales
• SAFe is valid
Tales
Tales
• Devs
always
write them
• Devs never
write them
• Not part
of the
test
strategy
Tales
• Testing
meetup
• Strategy
without
unit tests
• Didn’t like
them
• WTF?
• Right or
wrong?
• Help find out what a unit is
• Lens into the devs mind about
what/how to build
• Question assertions
• Effective integration tests
As a tester
• Integrate
with the test
strategy
• Code coverage
!= test
coverage
• Pair on
writing unit
tests
Help from devs
• Pyramids
• Myths
• Legends
• Tales
• Changing
perceptions
–As a tester
–How devs can
help
Covered…
Thanks

More Related Content

Similar to Myths, Legends and Tales of Unit Testing

Nerd-Wrangling 101: Managing Neurodiversity with Cognitive Empathy
Nerd-Wrangling 101: Managing Neurodiversity with Cognitive EmpathyNerd-Wrangling 101: Managing Neurodiversity with Cognitive Empathy
Nerd-Wrangling 101: Managing Neurodiversity with Cognitive EmpathyJulian Finn
 
Ash_Winter_Tested_to_Death
Ash_Winter_Tested_to_DeathAsh_Winter_Tested_to_Death
Ash_Winter_Tested_to_DeathAsh Winter
 
Theory research pro-forma (1)
Theory  research pro-forma (1)Theory  research pro-forma (1)
Theory research pro-forma (1)Ellieschreurs
 
Branded3's Best Reads
Branded3's Best ReadsBranded3's Best Reads
Branded3's Best ReadsBranded3
 
Lisa Sahulka - Leadership and-administrative-dynamics-fifth-class
Lisa Sahulka - Leadership and-administrative-dynamics-fifth-classLisa Sahulka - Leadership and-administrative-dynamics-fifth-class
Lisa Sahulka - Leadership and-administrative-dynamics-fifth-classSouthern Poverty Law Center
 
"Worst" practices of software testing
"Worst" practices of software testing"Worst" practices of software testing
"Worst" practices of software testingViktor Slavchev
 
Guidelines and Practical Approaches for Test Construction Cindy Cruz-Cabrera...
Guidelines and Practical Approaches for Test Construction  Cindy Cruz-Cabrera...Guidelines and Practical Approaches for Test Construction  Cindy Cruz-Cabrera...
Guidelines and Practical Approaches for Test Construction Cindy Cruz-Cabrera...University of the Philippines Diliman
 
Practice for test
Practice for testPractice for test
Practice for testkaohara9
 
Type talk and relationships power point 2 28-12
Type talk and relationships power point 2 28-12Type talk and relationships power point 2 28-12
Type talk and relationships power point 2 28-12htetaft
 
Star Trek Voyager: A Model for a More Inclusive Community
Star Trek Voyager: A Model for a More Inclusive CommunityStar Trek Voyager: A Model for a More Inclusive Community
Star Trek Voyager: A Model for a More Inclusive CommunityFredric Mitchell
 
How to Prepare for and Survive a Technical Interview
How to Prepare for and Survive a Technical InterviewHow to Prepare for and Survive a Technical Interview
How to Prepare for and Survive a Technical InterviewPerl Careers
 
Choosing Your Documentary Subject
Choosing Your Documentary SubjectChoosing Your Documentary Subject
Choosing Your Documentary SubjectShannon Walsh
 
Unit4jungandgenderpowerpoint 140328134650-phpapp01
Unit4jungandgenderpowerpoint 140328134650-phpapp01Unit4jungandgenderpowerpoint 140328134650-phpapp01
Unit4jungandgenderpowerpoint 140328134650-phpapp01Cleophas Rwemera
 
Unit 4 Jung and Gender Power Point
Unit 4 Jung and Gender Power PointUnit 4 Jung and Gender Power Point
Unit 4 Jung and Gender Power PointMrTimBradley
 
An Introduction to Critical Thinking
An Introduction to Critical ThinkingAn Introduction to Critical Thinking
An Introduction to Critical ThinkingDamian T. Gordon
 

Similar to Myths, Legends and Tales of Unit Testing (20)

Nerd-Wrangling 101: Managing Neurodiversity with Cognitive Empathy
Nerd-Wrangling 101: Managing Neurodiversity with Cognitive EmpathyNerd-Wrangling 101: Managing Neurodiversity with Cognitive Empathy
Nerd-Wrangling 101: Managing Neurodiversity with Cognitive Empathy
 
Ash_Winter_Tested_to_Death
Ash_Winter_Tested_to_DeathAsh_Winter_Tested_to_Death
Ash_Winter_Tested_to_Death
 
Theory research pro-forma (1)
Theory  research pro-forma (1)Theory  research pro-forma (1)
Theory research pro-forma (1)
 
Branded3's Best Reads
Branded3's Best ReadsBranded3's Best Reads
Branded3's Best Reads
 
Spaceship TDD Style
Spaceship TDD StyleSpaceship TDD Style
Spaceship TDD Style
 
Lisa Sahulka - Leadership and-administrative-dynamics-fifth-class
Lisa Sahulka - Leadership and-administrative-dynamics-fifth-classLisa Sahulka - Leadership and-administrative-dynamics-fifth-class
Lisa Sahulka - Leadership and-administrative-dynamics-fifth-class
 
Rm
RmRm
Rm
 
"Worst" practices of software testing
"Worst" practices of software testing"Worst" practices of software testing
"Worst" practices of software testing
 
Guidelines and Practical Approaches for Test Construction Cindy Cruz-Cabrera...
Guidelines and Practical Approaches for Test Construction  Cindy Cruz-Cabrera...Guidelines and Practical Approaches for Test Construction  Cindy Cruz-Cabrera...
Guidelines and Practical Approaches for Test Construction Cindy Cruz-Cabrera...
 
Practice for test
Practice for testPractice for test
Practice for test
 
Type talk and relationships power point 2 28-12
Type talk and relationships power point 2 28-12Type talk and relationships power point 2 28-12
Type talk and relationships power point 2 28-12
 
5 leading geeks
5 leading geeks5 leading geeks
5 leading geeks
 
Thinking Skills
Thinking SkillsThinking Skills
Thinking Skills
 
Star Trek Voyager: A Model for a More Inclusive Community
Star Trek Voyager: A Model for a More Inclusive CommunityStar Trek Voyager: A Model for a More Inclusive Community
Star Trek Voyager: A Model for a More Inclusive Community
 
How to Prepare for and Survive a Technical Interview
How to Prepare for and Survive a Technical InterviewHow to Prepare for and Survive a Technical Interview
How to Prepare for and Survive a Technical Interview
 
Choosing Your Documentary Subject
Choosing Your Documentary SubjectChoosing Your Documentary Subject
Choosing Your Documentary Subject
 
Unit4jungandgenderpowerpoint 140328134650-phpapp01
Unit4jungandgenderpowerpoint 140328134650-phpapp01Unit4jungandgenderpowerpoint 140328134650-phpapp01
Unit4jungandgenderpowerpoint 140328134650-phpapp01
 
Session 7.pptx
Session 7.pptxSession 7.pptx
Session 7.pptx
 
Unit 4 Jung and Gender Power Point
Unit 4 Jung and Gender Power PointUnit 4 Jung and Gender Power Point
Unit 4 Jung and Gender Power Point
 
An Introduction to Critical Thinking
An Introduction to Critical ThinkingAn Introduction to Critical Thinking
An Introduction to Critical Thinking
 

More from Ash Winter

Testability Advocacy Canvas
Testability Advocacy CanvasTestability Advocacy Canvas
Testability Advocacy CanvasAsh Winter
 
Testability Sales Pitch
Testability Sales PitchTestability Sales Pitch
Testability Sales PitchAsh Winter
 
Architectural Testability Workshop for Test Academy Barcelona
Architectural Testability Workshop for Test Academy BarcelonaArchitectural Testability Workshop for Test Academy Barcelona
Architectural Testability Workshop for Test Academy BarcelonaAsh Winter
 
Testability Squad Health Check
Testability Squad Health CheckTestability Squad Health Check
Testability Squad Health CheckAsh Winter
 
Testability is Everyone's Responsibility
Testability is Everyone's ResponsibilityTestability is Everyone's Responsibility
Testability is Everyone's ResponsibilityAsh Winter
 
10 P's of Testability
10 P's of Testability10 P's of Testability
10 P's of TestabilityAsh Winter
 
The Wheel of Testing
The Wheel of TestingThe Wheel of Testing
The Wheel of TestingAsh Winter
 
Making testability our mission
Making testability our missionMaking testability our mission
Making testability our missionAsh Winter
 
Testing Below the Application
Testing Below the ApplicationTesting Below the Application
Testing Below the ApplicationAsh Winter
 
Shift Testability
Shift TestabilityShift Testability
Shift TestabilityAsh Winter
 
Part of the Pipeline
Part of the PipelinePart of the Pipeline
Part of the PipelineAsh Winter
 
Scroll Based Testing Strategy
Scroll Based Testing StrategyScroll Based Testing Strategy
Scroll Based Testing StrategyAsh Winter
 
Bullseye or The Testing Wheel
Bullseye or The Testing WheelBullseye or The Testing Wheel
Bullseye or The Testing WheelAsh Winter
 
Ash_Winter-DEWT7_V1
Ash_Winter-DEWT7_V1Ash_Winter-DEWT7_V1
Ash_Winter-DEWT7_V1Ash Winter
 
Ash_Winter-Forgotten-ility_V1
Ash_Winter-Forgotten-ility_V1Ash_Winter-Forgotten-ility_V1
Ash_Winter-Forgotten-ility_V1Ash Winter
 
Main Talk v1.1
Main Talk v1.1Main Talk v1.1
Main Talk v1.1Ash Winter
 
Turbo Mindmapping Your App
Turbo Mindmapping Your AppTurbo Mindmapping Your App
Turbo Mindmapping Your AppAsh Winter
 
NWEWT_Slides_Ash_Winter_04_2016
NWEWT_Slides_Ash_Winter_04_2016NWEWT_Slides_Ash_Winter_04_2016
NWEWT_Slides_Ash_Winter_04_2016Ash Winter
 
Coaching Model for Unrecognised Internal Models
Coaching Model for Unrecognised Internal ModelsCoaching Model for Unrecognised Internal Models
Coaching Model for Unrecognised Internal ModelsAsh Winter
 
Ash_Winter_Testing_Mobile_Apocalypse_Online
Ash_Winter_Testing_Mobile_Apocalypse_OnlineAsh_Winter_Testing_Mobile_Apocalypse_Online
Ash_Winter_Testing_Mobile_Apocalypse_OnlineAsh Winter
 

More from Ash Winter (20)

Testability Advocacy Canvas
Testability Advocacy CanvasTestability Advocacy Canvas
Testability Advocacy Canvas
 
Testability Sales Pitch
Testability Sales PitchTestability Sales Pitch
Testability Sales Pitch
 
Architectural Testability Workshop for Test Academy Barcelona
Architectural Testability Workshop for Test Academy BarcelonaArchitectural Testability Workshop for Test Academy Barcelona
Architectural Testability Workshop for Test Academy Barcelona
 
Testability Squad Health Check
Testability Squad Health CheckTestability Squad Health Check
Testability Squad Health Check
 
Testability is Everyone's Responsibility
Testability is Everyone's ResponsibilityTestability is Everyone's Responsibility
Testability is Everyone's Responsibility
 
10 P's of Testability
10 P's of Testability10 P's of Testability
10 P's of Testability
 
The Wheel of Testing
The Wheel of TestingThe Wheel of Testing
The Wheel of Testing
 
Making testability our mission
Making testability our missionMaking testability our mission
Making testability our mission
 
Testing Below the Application
Testing Below the ApplicationTesting Below the Application
Testing Below the Application
 
Shift Testability
Shift TestabilityShift Testability
Shift Testability
 
Part of the Pipeline
Part of the PipelinePart of the Pipeline
Part of the Pipeline
 
Scroll Based Testing Strategy
Scroll Based Testing StrategyScroll Based Testing Strategy
Scroll Based Testing Strategy
 
Bullseye or The Testing Wheel
Bullseye or The Testing WheelBullseye or The Testing Wheel
Bullseye or The Testing Wheel
 
Ash_Winter-DEWT7_V1
Ash_Winter-DEWT7_V1Ash_Winter-DEWT7_V1
Ash_Winter-DEWT7_V1
 
Ash_Winter-Forgotten-ility_V1
Ash_Winter-Forgotten-ility_V1Ash_Winter-Forgotten-ility_V1
Ash_Winter-Forgotten-ility_V1
 
Main Talk v1.1
Main Talk v1.1Main Talk v1.1
Main Talk v1.1
 
Turbo Mindmapping Your App
Turbo Mindmapping Your AppTurbo Mindmapping Your App
Turbo Mindmapping Your App
 
NWEWT_Slides_Ash_Winter_04_2016
NWEWT_Slides_Ash_Winter_04_2016NWEWT_Slides_Ash_Winter_04_2016
NWEWT_Slides_Ash_Winter_04_2016
 
Coaching Model for Unrecognised Internal Models
Coaching Model for Unrecognised Internal ModelsCoaching Model for Unrecognised Internal Models
Coaching Model for Unrecognised Internal Models
 
Ash_Winter_Testing_Mobile_Apocalypse_Online
Ash_Winter_Testing_Mobile_Apocalypse_OnlineAsh_Winter_Testing_Mobile_Apocalypse_Online
Ash_Winter_Testing_Mobile_Apocalypse_Online
 

Recently uploaded

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Recently uploaded (20)

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

Myths, Legends and Tales of Unit Testing

  • 1. “Myths which are believed in tend to become true.” ~ George Orwell
  • 2. Ash Winter Short stuff here: @northern_tester Long stuff here:
  • 3. A Testers* Guide to the Myths, Legends and Tales of Unit Testing * Disclaimer: this definitely maybe applies to all disciplines in software development, not only testers but I’m a tester so its from my point of view.
  • 4. This is Gus • Speakeasy • Great mentor • Taught me speaking wasn’t only about me
  • 8. • Lone testers • Testing in other layers • Cross discipline illusions Y Tho?
  • 9. • Pyramids • Myths • Legends • Tales • Changing perceptions –As a tester –How devs can help Coming up…
  • 10. • Useful frame of reference? • Dogma justifying blood sacrifice? • Triangle anyway That Pyramid…
  • 11. • That unit tests fill in the bottom of the pyramid • That unit tests remain in the bottom layer of the pyramid • That unit tests are inherently more valuable than other layers of tests • That unit test coverage is irrelevant to manual testing • Large number of unit tests can replace integration tests. • You don't need additional tests because everything is unit tested • If you have a suite of unit tests you don't need to do much other testing The source…?
  • 12. • Based on reality • Explains something we don’t or can’t understand • Moral • Y2K Myths
  • 13. Myths • What’s a unit? • Existence == good • Tests exist to find bugs • Unit tests communicate intent • Document the code
  • 14. Myths • I’ve written my unit test plan. • Erm… • But they were testing • Right or wrong to challenge?
  • 15. • Based on a true event • Hero(es) in fantastical location • Origin story • Snowbird Ski Resort Legends
  • 16. Legends • TDD is testing, design, both and/or neither • Power of Clean Code™
  • 17. Legends • Startup • Great code • Unit tests FTW • Idea was bad • Didn’t test that • Death
  • 18. • Stories passed down • Might be one person • Might be a group • Fairy or folk tales • SAFe is valid Tales
  • 19. Tales • Devs always write them • Devs never write them • Not part of the test strategy
  • 20. Tales • Testing meetup • Strategy without unit tests • Didn’t like them • WTF? • Right or wrong?
  • 21. • Help find out what a unit is • Lens into the devs mind about what/how to build • Question assertions • Effective integration tests As a tester
  • 22. • Integrate with the test strategy • Code coverage != test coverage • Pair on writing unit tests Help from devs
  • 23. • Pyramids • Myths • Legends • Tales • Changing perceptions –As a tester –How devs can help Covered…

Editor's Notes

  1. NO QUESTIONS, HAVE A BEER.