Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 573 Bytes

testing.md

File metadata and controls

24 lines (17 loc) · 573 Bytes
description How to test your plugins.

Testing

Dispatch provides a basic test-based testing framework for plugins. In a simple plugin, you'll need to do a few things to get it working:

Require Dispatch

Augment your plugins setup.py to ensure that it depends on dispatch

setup(
    # ...
    install_requires=[
       'dispatch',
    ]
)

Running Tests

Running tests follows the py.test standard. As long as your test files and methods are named appropriately (test_filename.py and test_function()) you can call out to py.test: