JBGruber / atrrr

AT Protocol (Authenticated Transfer Protocol behind Bluesky) R package
https://jbgruber.github.io/atrrr
Other
11 stars 2 forks source link

Add tests #3

Open JBGruber opened 1 year ago

JBGruber commented 1 year ago

Tests are a little tricky. As the protocol might change rapidly, it does not make much sense to mock server replies. Some of the endpoints also don't behave exactly like advertised, so testing them against the described output might be a pain for now. I would suggest to only test the exported functions against the API and the auto-generated ones against the reply defined in the lexicon. We won't learn a lot from the latter, but at least all the code is covered and we can play around with the generator without causing issues.

JBGruber commented 1 year ago

Tests for auto-generated functions seem to work. Two things left to figure out: