Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Building Serverless Web Applications

You're reading from   Building Serverless Web Applications Develop scalable web apps using the Serverless Framework on AWS

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787126473
Length 354 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
 Zanon Zanon
Author Profile Icon Zanon
Zanon
Arrow right icon
View More author details
Toc

Testing your solution


Testing a serverless project can be a challenging experience, since we rely on many different cloud services that are hard to emulate locally and, besides testing individual services, we need to test how they work together.

However, the practices that you have already used in traditional projects can all be used for serverless applications. To improve the quality of your software, you may use Test-Driven Development (TDD), Behavior-Driven Development (BDD), or any other development process that fundamentally relies on automating tests. Although we don't have access to the machines that will execute the code, we can simulate many things locally and we can run integrations tests from time to time to assert that everything works as expected.

In the following sections, we are going to see how to create tests for the backend and frontend. To make this topic simpler, we are going to create tests for trivial functions. If you want more extensive examples, you can browse the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images