Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 871 Bytes

Testing.md

File metadata and controls

21 lines (14 loc) · 871 Bytes

Tests

Tests can be run using one of the following grunt tasks.

Most grunt tasks will first launch a testing instance of the bot, to perform acceptance testing against.

Command Description Launches testing Instance
grunt Watches core for changes and runs tests Yes
grunt test Runs all tests Yes
grunt wall Watches core and tests folders for changes and runs tests Yes
grunt wcore Watches core for changes and runs tests Yes
grunt wtest Watches tests for changes and runs tests Yes

For examples on writing acceptance tests see [tests/acceptance/test_core_modules.js]

Testing modules

Grunt will also run tests for modules installed that contain, test/acceptance and test/unit directories.

For an example see the HelloConcierge module.