ropensci-books / http-testing

HTTP testing for R
https://books.ropensci.org/http-testing/
Creative Commons Zero v1.0 Universal
53 stars 17 forks source link

How to organize package code #66

Closed maelle closed 3 years ago

maelle commented 3 years ago

The book is about testing but you'll have less things to test if you re-use helper code across your packages.

Having a general function à la gh::gh() for making requests for instance.

maelle commented 3 years ago

E.g. if you used webfakes to create a fake app then you wouldn't need the fake app to re-create all endpoints of the real thing and your code would still be tested well.