Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test Alexa Skills with Mocha or other Framework and alexa-app/-server #91

Open
natterstefan opened this issue Jun 27, 2017 · 4 comments

Comments

@natterstefan
Copy link

natterstefan commented Jun 27, 2017

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? It easy to open the Skill in the Browser, see the response and everything there, but it is not scalable. Is it?

Or how can I test multiple slot-values (eg wrong, valid or empty) against multiple Intents?

I am thinking about something like this example: Alexa Skill Test Framework from BrianMacIntosh. Or how do you test your skills within this setup? Am I looking in the wrong direction?

Thank you for your help guys.

@natterstefan natterstefan changed the title Test Alexa Skills with Mocha or other Framework How to test Alexa Skills with Mocha or other Framework and alexa-app/-server Jun 27, 2017
@ericblade
Copy link

that test framework that you've located looks like it was built to use the official SDK, which this is not directly compatible with. Might be possible to shim it to fit by creating a handler() function that digs into the alexa app object and calls the right intent. Otherwise, I'm not aware of any particular methods for testing the actual skills like that. Other people here might have some good ideas, though.

@natterstefan
Copy link
Author

Thanks for your feedback @ericblade. That is what I thought too, but I am not capable of doing this right now.

How do you test your skills?

@dblock
Copy link
Collaborator

dblock commented Jun 27, 2017

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?

@tejashah88
Copy link
Member

@natterstefan You might want to check out the node-alexa-smapi module if you want to test your Alexa skills with simulated requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants