19 How can I test my plumber API?
19.1 Introduction
(introduction will be written ~last)
19.1.1 Learning Objectives
After you read this chapter, you will be able to:
- Minimize API-specific code in your functions.
- Wrap an API into an R package.
- Test functions with {testthat}.
- Test API-specific functions with
req
arguments. - Test {plumber} routers.
19.1.2 Prerequisites
(prerequisites will be filled in as I write, if I decide to keep this section)