Skip to content

Conversation

@jsmnbom
Copy link
Member

@jsmnbom jsmnbom commented Jun 14, 2017

A test which cross references all bot methods and all types/classes with the official bot documentation. For now just checks if we have all methods and classes and whether they have the correct parameters.

Has a few workarounds for deprecation logic and such :/
It emits 105 tests, unfortunately it doesn't increase coverage one bit :( It would be lovely if we could figure out how to make it actually call (or initialize with classes) the method/class so eventual exception logic would be executed, but I wasn't sure how to do something like that.
It would also be nice if we could have it check our docstrings (maybe fuzzily, so they have to partically match like 75% or something?). It could also check that the types match, and whether it's required or not.

Note: PR also includes fixes for two things that didn't match the official docs, so tests actually pass.

jsmnbom added 3 commits June 14, 2017 13:42
Cross references method and class signatures with official docs
First errors found by the official test thingy
@jsmnbom jsmnbom added ⚙️ tests affected functionality: tests enhancement labels Jun 20, 2017
Copy link
Member

@tsnoam tsnoam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent work. just make sure to merge/rebase with latest master and if travis will still pass we can merge.

@tsnoam tsnoam merged commit 4b3b0cb into master Jun 21, 2017
@tsnoam tsnoam deleted the official-test branch June 21, 2017 20:14
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2020
@Bibo-Joshi Bibo-Joshi added 🔌 enhancement pr description: enhancement and removed enhancement labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🔌 enhancement pr description: enhancement ⚙️ tests affected functionality: tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants