Skip to Content
Frontend Architecture for Design Systems
book

Frontend Architecture for Design Systems

by Micah Godbolt
January 2016
Intermediate to advanced
198 pages
3h 55m
English
O'Reilly Media, Inc.
Content preview from Frontend Architecture for Design Systems

Chapter 11. Unit Testing

Unit testing is the process of breaking down your application to the smallest possible functions, and creating a repeatable, automated test that should continually produce the same result. These tests are the heart and soul of your application. They provide the foundation that all future code is built upon. Without unit tests, it is possible that a seldom-used function could remain broken for months without anyone noticing. With unit tests, every system function can be verified before a single line of code is even merged into the master branch, let alone pushed to production.

As a frontend architect, your primary role is making sure that developers have the tools necessary to be as efficient as possible. Unit tests are one of those essential tools for building an application of any scale. Whether your application logic is written mostly in a backend or frontend language, there are plenty of options to fit your workflow. No matter if you are running PHPUnit with PHP, NodeUnit with Node, or QUnit with JavaScript, you will find mature, stable platforms to build your tests upon.

Though your technology stack (and the tests associated with it) might be left up to the software architect, it is quite probable that your frontend developers will also be writing code that requires tests. Therefore it is important to become familiar with as many of the suites as possible. Acquiring mastery, or even proficiency, with all of them is not something we typically have the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Software Architecture Patterns

Software Architecture Patterns

Mark Richards
API Design Patterns

API Design Patterns

John J. Geewax
Node.js Design Patterns - Third Edition

Node.js Design Patterns - Third Edition

Mario Casciaro, Luciano Mammino

Publisher Resources

ISBN: 9781491926772Errata Page