17  How can I test my plumber API?

17.1 Introduction

(introduction will be written ~last)

17.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.

17.1.2 Prerequisites

(prerequisites will be filled in as I write, if I decide to keep this section)