© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. A. KingabyData-Driven Alexa Skillshttps://doi.org/10.1007/978-1-4842-7449-1_12

12. Unit Testing an Alexa Skill

Simon A. Kingaby1  
(1)
La Vergne, TN, USA
 

In the previous chapter, we wrote the lambda function code that serves as our skill’s back end. In this chapter, we will learn some ways to unit test that code to ensure that it works as expected.

For a small skill, the primary method for Unit Testing will likely be manual testing. As your skill grows, though, you will want to automate some of the testing. There are several stages of manual testing. First, make sure the lambda function compiles and works. Second, make sure the user utterances resolve to ...

Get Data-Driven Alexa Skills: Voice Access to Rich Data Sources for Enterprise Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.