Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Web Applications

You're reading from  Building Serverless Web Applications

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781787126473
Pages 354 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Diego Zanon Diego Zanon
Profile icon Diego Zanon
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}