Easy way to test plugins
Bug #534490 reported by
Max Rabkin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ibid |
Fix Committed
|
Wishlist
|
Unassigned |
Bug Description
It would be nice if there was an easy way for plugin-writers to write simple tests. I envision something like a doctest but with chat sessions instead of python-shell sessions (it would probably need regexes to allow for the fact that most queries have varying responses).
This will help prevent rarely-used plugins from decaying, and provide some executable documentation.
Related branches
lp:~max-rabkin/ibid/testing-framework
- Keegan Carruthers-Smith: Approve
- Stefano Rivera: Approve
- Max Rabkin: Abstain
- Jonathan Hitchcock: Abstain
-
Diff: 842 lines (+582/-87)14 files modifiedMANIFEST.in (+1/-0)
docs/api/ibid.core.rst (+13/-8)
docs/api/ibid.test.rst (+108/-0)
docs/api/index.rst (+1/-0)
docs/contributing.rst (+3/-0)
ibid/core.py (+38/-34)
ibid/test/__init__.py (+181/-2)
ibid/test/plugins/test_calc.py (+13/-0)
ibid/test/plugins/test_conversions.py (+14/-0)
ibid/test/plugins/test_core.py (+12/-13)
ibid/test/plugins/test_factoid.py (+135/-0)
ibid/test/plugins/test_google.py (+19/-0)
ibid/test/test.ini (+41/-0)
scripts/ibid-plugin (+3/-30)
Changed in ibid: | |
status: | New → Confirmed |
To post a comment you must log in.
We still don't have the doctest-like aspect, but we do have a framework for testing plugins.