SlideShare a Scribd company logo
Introduction to
Automated Testing
Michael Denomy
For Resilient Coders
5/16/2017
How Do You Know Your
Software Works?
• Click testing
• Console logging
• Breakpoints
What Are Some Challenges
To Manual Testing
• Time consuming
• Error prone
• Are you testing all code paths?
• Unanticipated side effects
Hello, Automated Testing
• No, it’s not really a cure-all
• But it will go a long way to
identify and avoid bugs
http://www.cedricstudio.com/2014/01/sketchbook-update-snake-oil-salesman/
Side Note: Software Bugs
• Anyone know where the term “bug” came from
Admiral Grace Hopper
What Is Automated Testing
• Code written to test your code
• Isn’t that twice as much code
• Isn’t that how SkyNet started
Testing as a Design Practice
• Test Driven Development (TDD)
• Write the test before you write the
code (Red)
• Write just enough code to make
test pass (Green)
• Rework the code to make it more
readable, maintainable (Refactor)
https://www.safaribooksonline.com/library/view/modern-c-programming/
9781941222423/images/RedGreenRefactor.png
Design Benefits of Testing
Stay DRY
Encourages YAGNI
Loose Coupling
Anatomy of a Test
• Most test frameworks use a domain specific
language (DSL) to write the test
https://s-media-cache-ak0.pinimg.com/236x/5e/83/
b2/5e83b27ccb29f39c34c40a97096012b5.jpg
Enough Talking
(Let’s Write Some Code)
• First time I came in to TA, you were all building a
calculator in JavaScript
• We’ll use a testing framework called Mocha
• https://mochajs.org/
• https://github.com/mdenomy/intro-to-mocha-testing
Introduction to
Automated Testing
Michael Denomy
For Resilient Coders
5/16/2017

More Related Content

What's hot (20)

PDF
Continuous Integration 101
John Ferguson Smart Limited
 
ZIP
Introduction To Continuous Integration
Christopher Read
 
PDF
Continuous, continuous, continuous
Michele Orselli
 
PDF
Introduction to test_driven_development
haochenglee
 
PPTX
The four generations of test automation
renard_vardy
 
PPTX
How to Get Started with Cypress
Applitools
 
PDF
Beer & Beta by Flockler - Feb 4th 2016
Sointu Karjalainen
 
PDF
Test Driven Development
pmanvi
 
PDF
QA Strategies for Testing Legacy Web Apps
Rainforest QA
 
PPTX
Intro to devops - Begin with End in Mind
Laavanya Kathiresen
 
PDF
Performance Metrics for your Delivery Pipeline - Wolfgang Gottesheim
JAXLondon2014
 
PDF
Drulenium - Testing Made Easy
nyccamp
 
PDF
Using Crowdsourced Testing to Turbocharge your Development Team
Rainforest QA
 
PDF
Test Driven Development
Hicham El Hammouchi
 
PPTX
DevQAOps - Surviving in a DevOps World
Winston Laoh
 
PDF
Introduction to Automated Testing
Lars Thorup
 
PPTX
Unit testing for project managers
Zend by Rogue Wave Software
 
PDF
Becoming a better programmer - unit testing
Duy Tan Geek
 
PPT
How to Build and Maintain Quality Drupal Sites with Automated Testing
Acquia
 
PDF
Code Review
Tu Hoang
 
Continuous Integration 101
John Ferguson Smart Limited
 
Introduction To Continuous Integration
Christopher Read
 
Continuous, continuous, continuous
Michele Orselli
 
Introduction to test_driven_development
haochenglee
 
The four generations of test automation
renard_vardy
 
How to Get Started with Cypress
Applitools
 
Beer & Beta by Flockler - Feb 4th 2016
Sointu Karjalainen
 
Test Driven Development
pmanvi
 
QA Strategies for Testing Legacy Web Apps
Rainforest QA
 
Intro to devops - Begin with End in Mind
Laavanya Kathiresen
 
Performance Metrics for your Delivery Pipeline - Wolfgang Gottesheim
JAXLondon2014
 
Drulenium - Testing Made Easy
nyccamp
 
Using Crowdsourced Testing to Turbocharge your Development Team
Rainforest QA
 
Test Driven Development
Hicham El Hammouchi
 
DevQAOps - Surviving in a DevOps World
Winston Laoh
 
Introduction to Automated Testing
Lars Thorup
 
Unit testing for project managers
Zend by Rogue Wave Software
 
Becoming a better programmer - unit testing
Duy Tan Geek
 
How to Build and Maintain Quality Drupal Sites with Automated Testing
Acquia
 
Code Review
Tu Hoang
 

Similar to Intro to automated testing (20)

PPTX
Write tests, please
Joan López de la Franca
 
PDF
Agile Testing Pasadena JUG Aug2009
Grig Gheorghiu
 
PDF
UPC Plone Testing Talk
Timo Stollenwerk
 
PDF
Automated testing-whitepaper
imdurgesh
 
PDF
Autonomous Testing Tools.pdf
Ciente
 
PDF
Boston MeetUp 10.10
Solano Labs
 
PDF
A Complete Guide to Codeless Testing.pdf
pCloudy
 
PPTX
Automated tests
Damian Sromek
 
PPTX
Level Up Your Automated Tests
Trisha Gee
 
PPT
Automated Testing vs Manual Testing.ppt
ZakriyaMalik2
 
PPT
Automated Testing v s Manual Testing.ppt
ZakriyaMalik2
 
PDF
Proven Approaches to AI-Powered E2E Testing.pdf
Applitools
 
PPTX
Insoft training day_1
Sriram Angajala
 
PDF
Building No-code Autonomous E2E Tests_Applitools.pdf
Applitools
 
PDF
Best automation testing service providers in Ahmedabad
Primeqa Solution
 
PDF
CodeScience Webinar - Automated Testing for Your Salesforce App — Tips and Tr...
CodeScience
 
PDF
Introduction to-automated-testing
BestBrains
 
PPTX
One to rule them all
Antonio Robres Turon
 
PPTX
Slides for Automation Testing or End to End testing
SwapnilNarayan
 
PDF
Advantages of Autonomous Testing.pdf
Ciente
 
Write tests, please
Joan López de la Franca
 
Agile Testing Pasadena JUG Aug2009
Grig Gheorghiu
 
UPC Plone Testing Talk
Timo Stollenwerk
 
Automated testing-whitepaper
imdurgesh
 
Autonomous Testing Tools.pdf
Ciente
 
Boston MeetUp 10.10
Solano Labs
 
A Complete Guide to Codeless Testing.pdf
pCloudy
 
Automated tests
Damian Sromek
 
Level Up Your Automated Tests
Trisha Gee
 
Automated Testing vs Manual Testing.ppt
ZakriyaMalik2
 
Automated Testing v s Manual Testing.ppt
ZakriyaMalik2
 
Proven Approaches to AI-Powered E2E Testing.pdf
Applitools
 
Insoft training day_1
Sriram Angajala
 
Building No-code Autonomous E2E Tests_Applitools.pdf
Applitools
 
Best automation testing service providers in Ahmedabad
Primeqa Solution
 
CodeScience Webinar - Automated Testing for Your Salesforce App — Tips and Tr...
CodeScience
 
Introduction to-automated-testing
BestBrains
 
One to rule them all
Antonio Robres Turon
 
Slides for Automation Testing or End to End testing
SwapnilNarayan
 
Advantages of Autonomous Testing.pdf
Ciente
 
Ad

More from Michael Denomy (9)

PPTX
Breathe In and Out With Me - Burlington Ruby Conference 2015
Michael Denomy
 
PDF
Writing Maintainable Tests with PageObjects
Michael Denomy
 
PDF
Memory Management in RubyMotion
Michael Denomy
 
PDF
Aikido, Controller Tests, and LinkedIn
Michael Denomy
 
PDF
Reinventing Yourself
Michael Denomy
 
PDF
Design Principles - Michael Denomy at Launch Academy
Michael Denomy
 
PDF
From Ruby on Rails to RubyMotion - Writing your First iOS App with RubyMotion
Michael Denomy
 
PPT
Debugging rails
Michael Denomy
 
PPT
Introduction to Test Driven Development
Michael Denomy
 
Breathe In and Out With Me - Burlington Ruby Conference 2015
Michael Denomy
 
Writing Maintainable Tests with PageObjects
Michael Denomy
 
Memory Management in RubyMotion
Michael Denomy
 
Aikido, Controller Tests, and LinkedIn
Michael Denomy
 
Reinventing Yourself
Michael Denomy
 
Design Principles - Michael Denomy at Launch Academy
Michael Denomy
 
From Ruby on Rails to RubyMotion - Writing your First iOS App with RubyMotion
Michael Denomy
 
Debugging rails
Michael Denomy
 
Introduction to Test Driven Development
Michael Denomy
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 

Intro to automated testing

  • 1. Introduction to Automated Testing Michael Denomy For Resilient Coders 5/16/2017
  • 2. How Do You Know Your Software Works? • Click testing • Console logging • Breakpoints
  • 3. What Are Some Challenges To Manual Testing • Time consuming • Error prone • Are you testing all code paths? • Unanticipated side effects
  • 4. Hello, Automated Testing • No, it’s not really a cure-all • But it will go a long way to identify and avoid bugs http://www.cedricstudio.com/2014/01/sketchbook-update-snake-oil-salesman/
  • 5. Side Note: Software Bugs • Anyone know where the term “bug” came from Admiral Grace Hopper
  • 6. What Is Automated Testing • Code written to test your code • Isn’t that twice as much code • Isn’t that how SkyNet started
  • 7. Testing as a Design Practice • Test Driven Development (TDD) • Write the test before you write the code (Red) • Write just enough code to make test pass (Green) • Rework the code to make it more readable, maintainable (Refactor) https://www.safaribooksonline.com/library/view/modern-c-programming/ 9781941222423/images/RedGreenRefactor.png
  • 8. Design Benefits of Testing Stay DRY Encourages YAGNI Loose Coupling
  • 9. Anatomy of a Test • Most test frameworks use a domain specific language (DSL) to write the test https://s-media-cache-ak0.pinimg.com/236x/5e/83/ b2/5e83b27ccb29f39c34c40a97096012b5.jpg
  • 10. Enough Talking (Let’s Write Some Code) • First time I came in to TA, you were all building a calculator in JavaScript • We’ll use a testing framework called Mocha • https://mochajs.org/ • https://github.com/mdenomy/intro-to-mocha-testing
  • 11. Introduction to Automated Testing Michael Denomy For Resilient Coders 5/16/2017