Object Response Tests
version 5 by Juhana Leinonen
- Chapter: Basic usage
- Chapter: Removing and adding tests
- Chapter: Changing the actor
- Chapter: A note on releasing
- Chapter: Version history
- Section: Version 5 (2013-10-26)
- Section: Version 4 (2010-06-14)
- Section: Version 3 (2009-09-23)
- Section: Version 2 (2008-12-23)
- Section: Version 1 (2008-11-18)
- Example: * Camp Fire - An example of basic use of the extension.
- Example: ** Porcelain - Skipping tests that destroy or alter the object.
Chapter: Basic usage
Object Response Tests adds new testing commands ANALYZE and TRY. ANALYZE can be used to execute all available commands on a single object to see whether all the messages make sense. TRY is similar but in 'reverse': it tests one verb with all the objects currently in the location. The syntax is TRY <action>, for example TRY PUSHING.
There's also an ANALYZE ALL command for those who are feeling adventurous. It runs all the tests on all the objects currently in the location. It is mainly useful for locations with not that many objects to test.
For testing the default library actions, just include the extension in your project and both these commands will become available. Actions related to speaking with persons (saying, telling, asking) are excluded because of the various ways different games handle conversation.