kevin-mitchell/alexa-app

How to test alexaroutes

Opened this issue · 3 comments

amenk commented

How can I call alexa routes from a test case?

Is there any mock prepared for this?

Dayjo commented

@amenk The way that I have been testing, is with a REST client, copying the request from the Alexa developer dashboard test page and posting those requests to the local domain. I guess you'd have to build something custom to implement this into unit tests.

It would be nice to have a suite of tests for this repo for the methods anyway.

amenk commented

I was having something in mind like the laravel router testing where you can send the "said" string and get a response.

Dayjo commented

@amenk Sounds good, I guess you'd have to replicate essentially what the simulator does when you test an intent in their system and it generates the request.