How to test Alexa Skills with Mocha or other Framework and alexa-app
Hello,
I really like the alexa-app and alexa-app-server environment and tools. They enable me to create Alexa-Skills easily. But what I am not sure of (didn't find something on the Internet so far or must have missed it) how I can test the Skill-Intents with eg. Mocha and Chai? How can I for example, test multiple slot-values (eg wrong, valid or empty) against one/multiple Intents?
I am thinking about something like this example: Alexa Skill Test Framework from BrianMacIntosh. Or how do you test your alexa-app skills?
Thank you for your help guys.
Edit: I have looked at existing tests like this one test_alexa_app_intent_request.js but this test does not use the actual developed skill (example), does it? So to say: they do not test against a developed skill, just against some mock data?
Check out https://github.com/artsy/elderfield/tree/master/test for an example. I'll leave this open, maybe someone can contribute a README section on testing?
@dblock Looks interesting, thanks for sharing it. I will take a look at it and try to come up with an idea for a README, as I need one for my project too.