Last active
April 6, 2018 00:51
-
-
Save jkelvie/9bfe213332be9e5d68704e8141d98282 to your computer and use it in GitHub Desktop.
YAML Test Spec for Skill Sample Node.js Fact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
configuration: | |
locale: en-US | |
--- | |
- Test: "Test launch request" # Optional info about the test | |
- LaunchRequest: # LaunchRequest is "reserved" - it is interpreted not as an utterance but as a LaunchRequest | |
- response.outputSpeech.ssml =~ "Here's your fact: *" | |
- response.card.title =~ "Space Facts" | |
- repsonse.card.content =~ "*" | |
--- | |
- Test: "Test get new facts intent" | |
- "Get New Facts": | |
- response.outputSpeech.ssml =~ "Here's your fact: *" # =~ means a partial match - wildcard matches anything | |
- response.card.title == "Space Facts" # == means exact match | |
- response.card.content != undefined # Checks that content is specified | |
--- | |
- Test: "Test help intent with multi-turn interaction" | |
- "Help": | |
- response.outputSpeech.ssml =~ "You can say tell me a space fact, or, you can say exit... What can I help you with?" | |
- response.reprompt.outputSpeech.ssml =~ "What can I help you with?" | |
- "Get a fact": | |
- response.outputSpeech.ssml =~ "Here's your fact: *" | |
--- | |
- "Cancel": | |
- response.outputSpeech.ssml == "Goodbye!" | |
- response.shouldEndSession == true | |
--- | |
- "Stop": | |
- response.outputSpeech.ssml == "Goodbye!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment