You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should probably be based off Ralyxa, rather than core. But it'd be nice to have some command-line-runnable tests that can go ask the AVS if they got the right result (or you'd stub the correct response).
describe'Saying hello'doit'Alexa responds with "yo, sup"'doresponse=Ralyxa.invokeIntent('HelloWorldIntent')expect(response.speech).toeq"yo, sup"endend
The text was updated successfully, but these errors were encountered:
This is not based off Ralyxa, but for what it's worth, here's my Ruby-based testing framework. It uses SMAPI, and handles getting/refreshing of tokens. It implements the skill-simulate and skill-invoke commands.
The syntax would look like this:
results = SayHelloSkill.test(output: "result")
let(:simulation) { ResponseObject.new(results) }
describe 'saying hello' do
it 'Alexa responds with "yo, sup"' do
expect(simulation.response_body.response.outputSpeech.text).to eq "yo, sup"
end
it 'invokes Launch Request' do
expect(simulation.request_body.request.type).to eq "LaunchRequest"
end
end
This should probably be based off Ralyxa, rather than core. But it'd be nice to have some command-line-runnable tests that can go ask the AVS if they got the right result (or you'd stub the correct response).
The text was updated successfully, but these errors were encountered: