JavaScript Testing—
Technically not a number…
Justin Obney, Front-End Dev
Gone are the days of old
Any application that can be
written in JavaScript, will be
written in JavaScript
-- Atwood’s
Law
JS is everywhere
That no one thinks they need to
actually learn how it works.
Looks like C or Java… How
hard could it be?
JavaScript is so
approachable
• The old way
• Frameworks
• The lies
• Where to start
• Tooling
• Who knows?
The Agenda
“Whenever you are tempted to
type something into a print
statement or a debugger
expression, write it as a test
instead.”
—Martin Fowler
When do I write a test?
Testing Frameworks
•A unit test is code that executes
part of your production code
with an expectation on the
result.
•Unit vs. Integration
•Mocking & Stubbing
•Vocabulary
But testing is hard…
But the DOM
Tooling
TEST’EM
I see you are on a Mac…
But what about Windows?
But does it scale?
In closing
Unit testing JS = SQLSat 324
Thank You
justinobney@gmail.com
twitter.com/justinobney
github.com/justinobney
apply@envoccareers.com

More Related Content

ODP
Sqa days2013
PPTX
Prototype that first
ODP
Assorted TDD tips
PDF
7 Surprising Polymer Takeaways
PPT
what's blocking our way
PPTX
Exceptions: Why, When, How and Where!
PDF
People & Products – Lessons learned from the daily IT madness
PPT
Isotope
Sqa days2013
Prototype that first
Assorted TDD tips
7 Surprising Polymer Takeaways
what's blocking our way
Exceptions: Why, When, How and Where!
People & Products – Lessons learned from the daily IT madness
Isotope

What's hot (18)

PPTX
A Mockery of a persentation
PDF
Fast end-to-end-tests
PPTX
Isotope
PPTX
A/B Testing That Matters
PDF
It's Not Just a Phase: Learning To Love Full Stack Development
PDF
Nhu Viet Nguyen "Why C++ is Becoming a Necessity for QA Automation"
ODP
Learned from Woodworking
PDF
7 lessons learned building high availability / performance systems - CM2015
PDF
Good Enough Prototype (Ivan Pashko Product Stream)
PPTX
Test Driven Development: More Development Than Ever
PDF
The Way of The Software Craftsman # Part One: The Beginning
PPTX
Lean Responsive
PPTX
Session #3: "It Works on My Machine!" Closing the Loop Between Development & ...
PDF
How to code in the XXI century without losing your head
PPTX
Felt - Front end load testing
PPTX
Testing javascript
PDF
The Front End Testing Frontier - RubyConf 2010
PDF
Understand the system
A Mockery of a persentation
Fast end-to-end-tests
Isotope
A/B Testing That Matters
It's Not Just a Phase: Learning To Love Full Stack Development
Nhu Viet Nguyen "Why C++ is Becoming a Necessity for QA Automation"
Learned from Woodworking
7 lessons learned building high availability / performance systems - CM2015
Good Enough Prototype (Ivan Pashko Product Stream)
Test Driven Development: More Development Than Ever
The Way of The Software Craftsman # Part One: The Beginning
Lean Responsive
Session #3: "It Works on My Machine!" Closing the Loop Between Development & ...
How to code in the XXI century without losing your head
Felt - Front end load testing
Testing javascript
The Front End Testing Frontier - RubyConf 2010
Understand the system
Ad

Similar to Unit testing JS = SQLSat 324 (20)

PPT
Testing Storm components with Groovy and Spock
PDF
TDD super mondays-june-2014
PDF
Testacular
PDF
Unit Testing and Behavior Driven Testing with AngularJS - Jesse Liberty | Fal...
PPTX
assertYourself - Breaking the Theories and Assumptions of Unit Testing in Flex
PPTX
Unit testing
PDF
Dark side of JS development framework
PDF
QA / Testing Tools, Automation Testing, Online & Classroom Training
PDF
playwrithgttttttttttttttttttttttSlides.pdf
PDF
The JavaScript Delusion
PDF
Best practices for JavaScript RIAs
PDF
Scrum Gathering 2012 Shanghai_敏捷测试与质量管理分会场演讲话题:getting to done by testing at ...
PPTX
GeeCON 2012 hurdle run through ejb testing
PDF
Javascript test automation demo
ODP
I Smell A RAT- Rapid Application Testing
KEY
Enterprise Strength Mobile JavaScript
PPSX
Waterfalls for Agile in a bag
PPTX
Software Development Essential Skills
PDF
Lessons Learned When Automating
PPTX
All of Javascript
Testing Storm components with Groovy and Spock
TDD super mondays-june-2014
Testacular
Unit Testing and Behavior Driven Testing with AngularJS - Jesse Liberty | Fal...
assertYourself - Breaking the Theories and Assumptions of Unit Testing in Flex
Unit testing
Dark side of JS development framework
QA / Testing Tools, Automation Testing, Online & Classroom Training
playwrithgttttttttttttttttttttttSlides.pdf
The JavaScript Delusion
Best practices for JavaScript RIAs
Scrum Gathering 2012 Shanghai_敏捷测试与质量管理分会场演讲话题:getting to done by testing at ...
GeeCON 2012 hurdle run through ejb testing
Javascript test automation demo
I Smell A RAT- Rapid Application Testing
Enterprise Strength Mobile JavaScript
Waterfalls for Agile in a bag
Software Development Essential Skills
Lessons Learned When Automating
All of Javascript
Ad

Recently uploaded (20)

PPTX
Chapter 1 - Transaction Processing and Mgt.pptx
PDF
Building an Inclusive Web Accessibility Made Simple with Accessibility Analyzer
PDF
Top 10 Project Management Software for Small Teams in 2025.pdf
PDF
MAGIX Sound Forge Pro CrackSerial Key Keygen
PPTX
A Spider Diagram, also known as a Radial Diagram or Mind Map.
PDF
Mobile App Backend Development with WordPress REST API: The Complete eBook
PDF
Workplace Software and Skills - OpenStax
PDF
Cloud Native Aachen Meetup - Aug 21, 2025
PDF
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
PPTX
Why 2025 Is the Best Year to Hire Software Developers in India
PDF
IT Consulting Services to Secure Future Growth
PDF
Mobile App for Guard Tour and Reporting.pdf
PDF
Odoo Construction Management System by CandidRoot
PDF
PDF-XChange Editor Plus 10.7.0.398.0 Crack Free Download Latest 2025
PDF
AI-Powered Fuzz Testing: The Future of QA
PDF
Engineering Document Management System (EDMS)
PDF
What Makes a Great Data Visualization Consulting Service.pdf
PPTX
ESDS_SAP Application Cloud Offerings.pptx
PPTX
Lesson-3-Operation-System-Support.pptx-I
PPTX
ROI from Efficient Content & Campaign Management in the Digital Media Industry
Chapter 1 - Transaction Processing and Mgt.pptx
Building an Inclusive Web Accessibility Made Simple with Accessibility Analyzer
Top 10 Project Management Software for Small Teams in 2025.pdf
MAGIX Sound Forge Pro CrackSerial Key Keygen
A Spider Diagram, also known as a Radial Diagram or Mind Map.
Mobile App Backend Development with WordPress REST API: The Complete eBook
Workplace Software and Skills - OpenStax
Cloud Native Aachen Meetup - Aug 21, 2025
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
Why 2025 Is the Best Year to Hire Software Developers in India
IT Consulting Services to Secure Future Growth
Mobile App for Guard Tour and Reporting.pdf
Odoo Construction Management System by CandidRoot
PDF-XChange Editor Plus 10.7.0.398.0 Crack Free Download Latest 2025
AI-Powered Fuzz Testing: The Future of QA
Engineering Document Management System (EDMS)
What Makes a Great Data Visualization Consulting Service.pdf
ESDS_SAP Application Cloud Offerings.pptx
Lesson-3-Operation-System-Support.pptx-I
ROI from Efficient Content & Campaign Management in the Digital Media Industry

Unit testing JS = SQLSat 324

Editor's Notes

  • #2: Who am I Envoc .Net beginning now they pay me to write JavaScript The web is changing rapidly The good old days WEB FORMS: post a form let the server build 1/2 MB or html and then send it back to the client to change a radio button … Cue magic
  • #3: Some of you may still live there... Get out now… JavaScript on rise
  • #4: Atwood’s Law CodingHorror StackOverflow it runs everywhere The server Mobile apps TVs? PS4? Heard of the web.. it is here to stay.
  • #5: 0.1 + 0.2
  • #6: console.log has the nasty risk of introducing bugs all on its own. enter dev tools (`debugger;`)
  • #8: QUnit older, more support mocha can drop in any* assertion library jasmine headless browser support built in spies & mocks
  • #9: Vocabulary A unit test is code that executes part of your production code with an expectation on the result. Unit vs integration unit - should be able to trust they should all be green integration - sometimes fail due to circumstance/environment Mocking and stubbing Mocks - you expect to assert against value (1 per test) Stubs - fake calls out. can have many
  • #12: ----- Meeting Notes (4/8/14 20:43) ----- Gmail, Facebook, Twitter, Azure Management Portal Models, Controllers, Services, Smart Caching, DI -- All things that can live in the client now
  • #13: ----- Meeting Notes (4/8/14 20:48) ----- Most of the tooling you will find will run on NodeJS Node has made Windows a first class citizen. You can integrate it into most of your existing CI servers. The only thing stopping you is you.
  • #14: This is not library code. There is very little DOM manipulation going on here (SPA). This is application logic.