SlideShare a Scribd company logo
Outside-In Testing
In Vue
Josh Justice
learntdd.in/vue
CodingItWrong
Talk to us about Vue projects!
Free 30 Day Trial
thefrontier@bignerdranch.com
Vue is one of the most
testable frontend frameworks
Outside-in Testing in Vue with Cypress
Questions! 🤔
• Do I write the test or production code first?
• What do I test first?
• How many E2E/unit tests do I write?
• How much test code do I write at a time?
Production code?
• Do I test every line of code and configuration?
Test-Driven
Development:
An approach to testing that
provides a consistent set of
answers to those questions.
Outside-in Testing in Vue with Cypress
Outside-in Testing in Vue with Cypress
A note on test coverage
Outside-in Testing in Vue with Cypress
https://www.cypress.io/how-it-works/
"One of our goals was to make test-driven
development a reality for end-to-end
testing. Cypress is at its best when you use
it as you build your application. We give you
the power to code as fast as possible.”
“…unlock the ability to do TDD with full end-
to-end tests for the very first time…The end
result is that you will have developed more,
your code will be better, and it will be
completely tested.”
https://www.cypress.io/how-it-works/
learntdd.in/vue
live demo 😅
Requirement: as a
user, I want to be able
to send a message.
Why TDD?
Confidence it works.
100% test coverage.
Minimal code.
Ability to refactor.
Ability to ship quickly.
Makes you happier.
TDD can be one of
your distinctives
To Learn More
learntdd.in/vue
To Learn More
Apply for future positions!
bignerdranch.com/about/careers
🤔 Questions?
Thanks! 🤔
@CodingItWrong
learntdd.in/vue

More Related Content

What's hot (20)

PDF
Test Driven Development
Hicham El Hammouchi
 
PDF
Intro to automated testing
Michael Denomy
 
PPT
Presentation_TDD
Raihan Masud
 
PDF
Who let the robot out? - Building high quality software with Continuous Integ...
Timo Stollenwerk
 
PDF
Continuous Delivery - the missing parts - Paul Stack
JAXLondon_Conference
 
PPTX
Nascenia: Road to Software Industry
Nascenia IT
 
PDF
Tdd2018 state of the software quality in Germany
Orlovsky Consulting GbR
 
PDF
Drulenium - Testing Made Easy
nyccamp
 
PDF
Introduction cypress
Oim Trust
 
PDF
Continuous Integration at T3CON08
Sebastian Kurfürst
 
PPTX
Code review
Aleksey Solntsev
 
PDF
Tester vs Developer
Tricon Infotech
 
PPTX
XP Injection
Aleksey Solntsev
 
PPTX
How to be proud when you are done
Aleksey Solntsev
 
PDF
Boquet manager
Orlovsky Consulting GbR
 
PDF
When you get lost in api testing #ForumPHP
Paula Čučuk
 
PPTX
TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...
Trójmiejska Grupa Testerska
 
PPTX
The four generations of test automation
renard_vardy
 
PDF
[Quang nguyen] Continuous Integration XP Day 2015 Vietnam Danang
Agile đây Vietnam
 
PDF
Testing the way it should be
Brian Mann
 
Test Driven Development
Hicham El Hammouchi
 
Intro to automated testing
Michael Denomy
 
Presentation_TDD
Raihan Masud
 
Who let the robot out? - Building high quality software with Continuous Integ...
Timo Stollenwerk
 
Continuous Delivery - the missing parts - Paul Stack
JAXLondon_Conference
 
Nascenia: Road to Software Industry
Nascenia IT
 
Tdd2018 state of the software quality in Germany
Orlovsky Consulting GbR
 
Drulenium - Testing Made Easy
nyccamp
 
Introduction cypress
Oim Trust
 
Continuous Integration at T3CON08
Sebastian Kurfürst
 
Code review
Aleksey Solntsev
 
Tester vs Developer
Tricon Infotech
 
XP Injection
Aleksey Solntsev
 
How to be proud when you are done
Aleksey Solntsev
 
Boquet manager
Orlovsky Consulting GbR
 
When you get lost in api testing #ForumPHP
Paula Čučuk
 
TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...
Trójmiejska Grupa Testerska
 
The four generations of test automation
renard_vardy
 
[Quang nguyen] Continuous Integration XP Day 2015 Vietnam Danang
Agile đây Vietnam
 
Testing the way it should be
Brian Mann
 

Similar to Outside-in Testing in Vue with Cypress (20)

PDF
Testing Vue Apps with Cypress.io (STLJS Meetup April 2018)
Christian Catalan
 
PDF
Test-Driven Development in Vue with Cypress
Josh Justice
 
PPTX
ITB 2023 Build Vue Apps Using tdd (Test-Driven Development).pptx
Ortus Solutions, Corp
 
PPTX
Understanding TDD - theory, practice, techniques and tips.
Malinda Kapuruge
 
PDF
Intro to JavaScript Testing
Ran Mizrahi
 
PDF
Cypress Testing Demystified: A Practical Guide
Testgrid.io
 
PPTX
How to write test in node.js
Jason Lin
 
PPTX
Cypress report
Adarsh
 
PDF
Intro To JavaScript Unit Testing - Ran Mizrahi
Ran Mizrahi
 
PDF
Test driven development and react js application go hand in hand
Katy Slemon
 
PPTX
An Introduction To Software Development - Test Driven Development, Part 1
Blue Elephant Consulting
 
PDF
Test-driven development with Node.js
Mirko Kiefer
 
PPTX
Introduction to Integration Testing With Cypress
Erez Cohen
 
PDF
Changing Your Mindset: Getting Started With Test-Driven Development
Viget Labs
 
PDF
Automated testing with Cypress
Yong Shean Chong
 
PDF
Cypress Best Pratices for Test Automation
Knoldus Inc.
 
PDF
Test Driven Development (TDD)
David Ehringer
 
PDF
Testing Big in JavaScript
Robert DeLuca
 
ODP
Writing useful automated tests for the single page applications you build
Andrei Sebastian Cîmpean
 
PDF
Changing Your Mindset: Getting Started with Test-Driven Development
Patrick Reagan
 
Testing Vue Apps with Cypress.io (STLJS Meetup April 2018)
Christian Catalan
 
Test-Driven Development in Vue with Cypress
Josh Justice
 
ITB 2023 Build Vue Apps Using tdd (Test-Driven Development).pptx
Ortus Solutions, Corp
 
Understanding TDD - theory, practice, techniques and tips.
Malinda Kapuruge
 
Intro to JavaScript Testing
Ran Mizrahi
 
Cypress Testing Demystified: A Practical Guide
Testgrid.io
 
How to write test in node.js
Jason Lin
 
Cypress report
Adarsh
 
Intro To JavaScript Unit Testing - Ran Mizrahi
Ran Mizrahi
 
Test driven development and react js application go hand in hand
Katy Slemon
 
An Introduction To Software Development - Test Driven Development, Part 1
Blue Elephant Consulting
 
Test-driven development with Node.js
Mirko Kiefer
 
Introduction to Integration Testing With Cypress
Erez Cohen
 
Changing Your Mindset: Getting Started With Test-Driven Development
Viget Labs
 
Automated testing with Cypress
Yong Shean Chong
 
Cypress Best Pratices for Test Automation
Knoldus Inc.
 
Test Driven Development (TDD)
David Ehringer
 
Testing Big in JavaScript
Robert DeLuca
 
Writing useful automated tests for the single page applications you build
Andrei Sebastian Cîmpean
 
Changing Your Mindset: Getting Started with Test-Driven Development
Patrick Reagan
 
Ad

More from Josh Justice (15)

PDF
Effective Detox Testing - React Advanced 2023
Josh Justice
 
PDF
Designing Effective Tests with React Testing Library - React Summit 2023
Josh Justice
 
PDF
Testing React Native Apps - Chain React 2023
Josh Justice
 
PDF
Designing Effective Tests with React Testing Library - React Day Berlin 2022
Josh Justice
 
PDF
Building for Mobile and Web with Expo - React Day Berlin 2022
Josh Justice
 
PDF
Intro to React Native Testing Library
Josh Justice
 
PDF
Building for Mobile and Web with Expo - React Advanced London 2022
Josh Justice
 
PDF
Getting Better All the Time: How to Escape Bad Code
Josh Justice
 
PDF
Sustainable Learning - ReactATL Jan 2022
Josh Justice
 
PDF
Building an App for Mobile and Web with Expo
Josh Justice
 
PPTX
User-Modifiable Software: Smalltalk and HyperCard
Josh Justice
 
PDF
Practical Accessibility (A11y)
Josh Justice
 
PDF
Old Solutions to New Testing Problems
Josh Justice
 
PDF
Test-Driven Development in React with Cypress
Josh Justice
 
PDF
Newbie's Guide to Contributing to Babel
Josh Justice
 
Effective Detox Testing - React Advanced 2023
Josh Justice
 
Designing Effective Tests with React Testing Library - React Summit 2023
Josh Justice
 
Testing React Native Apps - Chain React 2023
Josh Justice
 
Designing Effective Tests with React Testing Library - React Day Berlin 2022
Josh Justice
 
Building for Mobile and Web with Expo - React Day Berlin 2022
Josh Justice
 
Intro to React Native Testing Library
Josh Justice
 
Building for Mobile and Web with Expo - React Advanced London 2022
Josh Justice
 
Getting Better All the Time: How to Escape Bad Code
Josh Justice
 
Sustainable Learning - ReactATL Jan 2022
Josh Justice
 
Building an App for Mobile and Web with Expo
Josh Justice
 
User-Modifiable Software: Smalltalk and HyperCard
Josh Justice
 
Practical Accessibility (A11y)
Josh Justice
 
Old Solutions to New Testing Problems
Josh Justice
 
Test-Driven Development in React with Cypress
Josh Justice
 
Newbie's Guide to Contributing to Babel
Josh Justice
 
Ad

Recently uploaded (20)

PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
PPTX
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
PPTX
Engineering the Java Web Application (MVC)
abhishekoza1981
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
Engineering the Java Web Application (MVC)
abhishekoza1981
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 

Outside-in Testing in Vue with Cypress

Editor's Notes

  • #5: We are adding more and more web content across different frameworks Just added a talk about testing Vue components Also about extracting a component under test; it’s in React but the principles apply to Vue Free trial to check it out and let us know what you want to see
  • #6: Who here uses the Vue web pack template?
  • #7: How many of you use the Webpack template? E2E and component testing built in
  • #8: But you still have a lot of questions
  • #10: Diagram from Growing Object Oriented Software Guided by Tests
  • #11: Outside-in TDD
  • #12: Webpack template has Istanbul code coverage built in Specifically it’s unit test coverage The people I’ve learned testing from, whose opinions I respect the most, don’t talk about percentage coverage Here’s why. In TDD, end-to-end tests necessarily cover everything You don’t need a unit test to cover everything; it doesn’t deliver value
  • #13: Cypress was specifically built with a focus on TDD Completely free to use Nearing 1.0 release Based in Atlanta, some Cypress folks in the room—introduce them
  • #14: Cypress was specifically built with a focus on TDD Completely free to use Nearing 1.0 release Based in Atlanta, some Cypress folks in the room—introduce them
  • #15: Cypress was specifically built with a focus on TDD Completely free to use Nearing 1.0 release Based in Atlanta, some Cypress folks in the room—introduce them I can’t vouch for the fact of whether you can do TDD with Nightwatch. But I don’t hear of many people doing it
  • #29: Several Vue projects for a major company Apply for future positions